]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
only send prydoncursor related buttons, if cl_prydoncursor is 1
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 4 Aug 2010 16:33:55 +0000 (16:33 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 4 Aug 2010 16:33:55 +0000 (16:33 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10373 d7cf8633-e32d-0410-b094-e92efae38249

cl_input.c

index e0a0b4305759176b2b387c6bd433d6a964685bc0..6f25cee6913ee4bab67e2da0674a9a2e4979d23e 100644 (file)
@@ -1750,10 +1750,13 @@ void CL_SendMove(void)
        if (in_button16.state  & 3) bits |= 262144;
        // button bits 19-31 unused currently
        // rotate/zoom view serverside if PRYDON_CLIENTCURSOR cursor is at edge of screen
-       if (cl.cmd.cursor_screen[0] <= -1) bits |= 8;
-       if (cl.cmd.cursor_screen[0] >=  1) bits |= 16;
-       if (cl.cmd.cursor_screen[1] <= -1) bits |= 32;
-       if (cl.cmd.cursor_screen[1] >=  1) bits |= 64;
+       if(cl_prydoncursor.integer > 0)
+       {
+               if (cl.cmd.cursor_screen[0] <= -1) bits |= 8;
+               if (cl.cmd.cursor_screen[0] >=  1) bits |= 16;
+               if (cl.cmd.cursor_screen[1] <= -1) bits |= 32;
+               if (cl.cmd.cursor_screen[1] >=  1) bits |= 64;
+       }
 
        // set buttons and impulse
        cl.cmd.buttons = bits;