Fixed linux sw building.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3199 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
dcefeaa8fa
commit
9a20ae8fa2
1 changed files with 14 additions and 15 deletions
|
@ -1412,22 +1412,21 @@ void IN_Move (float *movements, int pnum)
|
||||||
#ifdef IN_XFLIP
|
#ifdef IN_XFLIP
|
||||||
if(in_xflip.value) mouse_x *= -1;
|
if(in_xflip.value) mouse_x *= -1;
|
||||||
#endif
|
#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) ))
|
if ( (in_mlook.state[pnum] & 1) && !(in_strafe.state[pnum] & 1))
|
||||||
movements[1] += m_side.value * mouse_x;
|
{
|
||||||
else
|
cl.viewangles[pnum][PITCH] += m_pitch.value * mouse_y;
|
||||||
cl.viewangles[pnum][YAW] -= m_yaw.value * mouse_x;
|
CL_ClampPitch(pnum);
|
||||||
if (in_mlook.state[pnum] & 1)
|
}
|
||||||
V_StopPitchDrift (pnum);
|
else
|
||||||
|
|
||||||
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_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;
|
||||||
|
|
Loading…
Reference in a new issue