From 29a096213c13ec16804a8eea0e17f082b1271f48 Mon Sep 17 00:00:00 2001 From: Mario Date: Fri, 12 Dec 2014 17:50:43 +1100 Subject: [PATCH] Fix button mask --- qcsrc/common/physics.qh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.39.2