From: divverent Date: Wed, 4 Aug 2010 16:33:55 +0000 (+0000) Subject: only send prydoncursor related buttons, if cl_prydoncursor is 1 X-Git-Tag: xonotic-v0.1.0preview~230^2~105 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=ccb5fe100fa4f0005123933dcdf4e9d3ad878687;p=xonotic%2Fdarkplaces.git only send prydoncursor related buttons, if cl_prydoncursor is 1 git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10373 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/cl_input.c b/cl_input.c index e0a0b430..6f25cee6 100644 --- a/cl_input.c +++ b/cl_input.c @@ -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;