X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Fphysics.qh;h=bea2bd9c471432a1799a8117d468bd44d1504259;hb=29a096213c13ec16804a8eea0e17f082b1271f48;hp=3b8a3f74b4421121194daba103cb3134ef6d2c98;hpb=70803bcbda5d5b5398a6a743de367dbf62026a35;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/physics.qh b/qcsrc/common/physics.qh index 3b8a3f74b..bea2bd9c4 100644 --- a/qcsrc/common/physics.qh +++ b/qcsrc/common/physics.qh @@ -13,7 +13,7 @@ #define PHYS_INPUT_MOVEVALUES(s) input_movevalues - #define PHYS_INPUT_BUTTON_MASK(s) !!(input_buttons | 128 * (input_movevalues_x < 0) | 256 * (input_movevalues_x > 0) | 512 * (input_movevalues_y < 0) | 1024 * (input_movevalues_y > 0)) + #define PHYS_INPUT_BUTTON_MASK(s) (input_buttons | 128 * (input_movevalues_x < 0) | 256 * (input_movevalues_x > 0) | 512 * (input_movevalues_y < 0) | 1024 * (input_movevalues_y > 0)) #define PHYS_INPUT_BUTTON_ATCK(s) !!(input_buttons & 1) #define PHYS_INPUT_BUTTON_JUMP(s) !!(input_buttons & 2) #define PHYS_INPUT_BUTTON_ATCK2(s) !!(input_buttons & 4)