Attempt 2.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3201 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2009-05-24 11:24:57 +00:00
parent 252face9c5
commit bd22b975d0

View file

@ -281,7 +281,7 @@ void IN_Move (float *movements, int pnum)
if ( (in_strafe.state[pnum] & 1) || (lookstrafe.value && (in_mlook.state[pnum] & 1) )) if ( (in_strafe.state[pnum] & 1) || (lookstrafe.value && (in_mlook.state[pnum] & 1) ))
{ {
if (cmd) if (movements)
movements[1] += m_side.value * mouse_x; movements[1] += m_side.value * mouse_x;
} }
else else
@ -295,7 +295,7 @@ void IN_Move (float *movements, int pnum)
cl.viewangles[pnum][PITCH] += m_pitch.value * mouse_y; cl.viewangles[pnum][PITCH] += m_pitch.value * mouse_y;
CL_ClampPitch(pnum); CL_ClampPitch(pnum);
} else { } else {
if (cmd) if (movements)
{ {
if ((in_strafe.state[pnum] & 1) && noclip_anglehack) if ((in_strafe.state[pnum] & 1) && noclip_anglehack)
movements[2] -= m_forward.value * mouse_y; movements[2] -= m_forward.value * mouse_y;