From: Mario Date: Fri, 12 Dec 2014 06:50:43 +0000 (+1100) Subject: Fix button mask X-Git-Tag: xonotic-v0.8.1~38^2~62 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=29a096213c13ec16804a8eea0e17f082b1271f48;p=xonotic%2Fxonotic-data.pk3dir.git Fix button mask --- 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)