]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix button mask
authorMario <zacjardine@y7mail.com>
Fri, 12 Dec 2014 06:50:43 +0000 (17:50 +1100)
committerMario <zacjardine@y7mail.com>
Fri, 12 Dec 2014 06:50:43 +0000 (17:50 +1100)
qcsrc/common/physics.qh

index 3b8a3f74b4421121194daba103cb3134ef6d2c98..bea2bd9c471432a1799a8117d468bd44d1504259 100644 (file)
@@ -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)