mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-10 22:51:57 +00:00
Sorry, some bits I missed.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4060 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
fe23d72d69
commit
765642b1e2
1 changed files with 3 additions and 3 deletions
|
@ -1043,7 +1043,7 @@ void Sys_SendKeyEvents(void)
|
||||||
|
|
||||||
void Force_CenterView_f (void)
|
void Force_CenterView_f (void)
|
||||||
{
|
{
|
||||||
cl.viewangles[0][PITCH] = 0;
|
cl.playerview[0].viewangles[PITCH] = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void IN_ReInit(void)
|
void IN_ReInit(void)
|
||||||
|
@ -1149,14 +1149,14 @@ void IN_MouseMove (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) ))
|
||||||
movements[1] += m_side.value * mouse_x;
|
movements[1] += m_side.value * mouse_x;
|
||||||
else
|
else
|
||||||
cl.viewanglechange[pnum][YAW] -= m_yaw.value * mouse_x;
|
cl.playerview[pnum].viewanglechange[YAW] -= m_yaw.value * mouse_x;
|
||||||
|
|
||||||
if (in_mlook.state[pnum] & 1)
|
if (in_mlook.state[pnum] & 1)
|
||||||
V_StopPitchDrift (pnum);
|
V_StopPitchDrift (pnum);
|
||||||
|
|
||||||
if ( (in_mlook.state[pnum] & 1) && !(in_strafe.state[pnum] & 1))
|
if ( (in_mlook.state[pnum] & 1) && !(in_strafe.state[pnum] & 1))
|
||||||
{
|
{
|
||||||
cl.viewanglechange[pnum][PITCH] += m_pitch.value * mouse_y;
|
cl.playerview[pnum].viewanglechange[PITCH] += m_pitch.value * mouse_y;
|
||||||
CL_ClampPitch(pnum);
|
CL_ClampPitch(pnum);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue