X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=blobdiff_plain;f=vid_glx.c;h=5fa9867b6ec74b5c0ee2dcf8019a0e8f8e363f88;hp=8124ed710a69ae703e85770c0b5bbe62b9bcbaae;hb=241f521388f39d8145d5036ebb1969baaf98006d;hpb=a2396cf1c0d8941cd92b2ef714f94248e6deb577 diff --git a/vid_glx.c b/vid_glx.c index 8124ed71..5fa9867b 100644 --- a/vid_glx.c +++ b/vid_glx.c @@ -862,10 +862,7 @@ void IN_MouseMove (usercmd_t *cmd) V_StopPitchDrift (); if (/*freelook && */!(in_strafe.state & 1)) - { cl.viewangles[PITCH] += m_pitch.value * mouse_y; - cl.viewangles[PITCH] = bound (-90, cl.viewangles[PITCH], 90); - } else { if ((in_strafe.state & 1) && noclip_anglehack) @@ -879,6 +876,7 @@ void IN_MouseMove (usercmd_t *cmd) void IN_Move (usercmd_t *cmd) { IN_MouseMove(cmd); + cl.viewangles[PITCH] = bound (in_pitch_min.value, cl.viewangles[PITCH], in_pitch_max.value); }