]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/physics.qh
Fix button mask
[xonotic/xonotic-data.pk3dir.git] / 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)