From ccb5fe100fa4f0005123933dcdf4e9d3ad878687 Mon Sep 17 00:00:00 2001 From: divverent Date: Wed, 4 Aug 2010 16:33:55 +0000 Subject: [PATCH] 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 --- cl_input.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) 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; -- 2.39.2