mouselook fix

This commit is contained in:
eukos 2015-07-23 22:00:22 +02:00
parent 0c72afd20c
commit df001b1b03

View file

@ -1249,11 +1249,12 @@ void IN_Move (usercmd_t *cmd)
V_StopPitchDrift ();
if ( ((in_mlook.state & 1) ^ ((int)m_look->value & 1)) && !(in_strafe.state & 1)) { // 2001-12-16 M_LOOK cvar by Heffo/Maddes
cl.viewangles[PITCH] += m_pitch->value * mouse_y;
if (cl.viewangles[PITCH] > 80)
cl.viewangles[PITCH] = 80;
if (cl.viewangles[PITCH] < -70)
cl.viewangles[PITCH] = -70;
tangles[PITCH] += m_pitch->value * mouse_y;
if (!deathcam_yesiamdead){
if (tangles[PITCH] > 80)
tangles[PITCH] = 80;
if (tangles[PITCH] < -70)
tangles[PITCH] = -70;}
} else {
if ((in_strafe.state & 1) && noclip_anglehack)
cmd->upmove -= m_forward->value * mouse_y;