From 9a20ae8fa2b7b11b3a3a90a80499a86ef2be575f Mon Sep 17 00:00:00 2001 From: Spoike Date: Sun, 24 May 2009 10:51:01 +0000 Subject: [PATCH] Fixed linux sw building. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3199 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/sw/vid_x.c | 29 ++++++++++++++--------------- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/engine/sw/vid_x.c b/engine/sw/vid_x.c index 4a3a8cc33..ddaa5d673 100644 --- a/engine/sw/vid_x.c +++ b/engine/sw/vid_x.c @@ -1412,22 +1412,21 @@ void IN_Move (float *movements, int pnum) #ifdef IN_XFLIP if(in_xflip.value) mouse_x *= -1; #endif + if (movements) + { + if ( (in_strafe.state[pnum] & 1) || (lookstrafe.value && (in_mlook.state[pnum] & 1) )) + movements[1] += m_side.value * mouse_x; + else + cl.viewangles[pnum][YAW] -= m_yaw.value * mouse_x; + if (in_mlook.state[pnum] & 1) + V_StopPitchDrift (pnum); - if ( (in_strafe.state[pnum] & 1) || (lookstrafe.value && (in_mlook.state[pnum] & 1) )) - movements[1] += m_side.value * mouse_x; - else - cl.viewangles[pnum][YAW] -= m_yaw.value * mouse_x; - if (in_mlook.state[pnum] & 1) - V_StopPitchDrift (pnum); - - if ( (in_mlook.state[pnum] & 1) && !(in_strafe.state[pnum] & 1)) - { - cl.viewangles[pnum][PITCH] += m_pitch.value * mouse_y; - CL_ClampPitch(pnum); - } - else - { - if (cmd) + if ( (in_mlook.state[pnum] & 1) && !(in_strafe.state[pnum] & 1)) + { + cl.viewangles[pnum][PITCH] += m_pitch.value * mouse_y; + CL_ClampPitch(pnum); + } + else { if ((in_strafe.state[pnum] & 1) && noclip_anglehack) movements[2] -= m_forward.value * mouse_y;