diff --git a/cl_dll/input.cpp b/cl_dll/input.cpp index f89f0232..c6cd841c 100644 --- a/cl_dll/input.cpp +++ b/cl_dll/input.cpp @@ -23,7 +23,7 @@ extern "C" #include "const.h" #include "camera.h" #include "in_defs.h" -#include "view.h" +//#include "view.h" #include #include diff --git a/cl_dll/inputw32.cpp b/cl_dll/inputw32.cpp index 1bacdf07..33144a8b 100644 --- a/cl_dll/inputw32.cpp +++ b/cl_dll/inputw32.cpp @@ -18,7 +18,7 @@ #include "camera.h" #include "in_defs.h" #include "../engine/keydefs.h" -#include "view.h" +//#include "view.h" #include "windows.h" #define MOUSE_BUTTON_COUNT 5 @@ -304,11 +304,6 @@ void IN_MouseMove ( float frametime, usercmd_t *cmd) gEngfuncs.GetViewAngles( (float *)viewangles ); - if ( in_mlook.state & 1) - { - V_StopPitchDrift (); - } - //jjb - this disbles normal mouse control if the user is trying to // move the camera, or if the mouse cursor is visible or if we're in intermission if ( !iMouseInUse && !g_iVisibleMouse && !gHUD.m_iIntermission ) @@ -791,18 +786,6 @@ void IN_JoyMove ( float frametime, usercmd_t *cmd ) { viewangles[PITCH] += (fAxisValue * joy_pitchsensitivity->value) * aspeed * cl_pitchspeed->value; } - V_StopPitchDrift(); - } - else - { - // no pitch movement - // disable pitch return-to-center unless requested by user - // *** this code can be removed when the lookspring bug is fixed - // *** the bug always has the lookspring feature on - if(lookspring->value == 0.0) - { - V_StopPitchDrift(); - } } } else @@ -844,7 +827,6 @@ void IN_JoyMove ( float frametime, usercmd_t *cmd ) { viewangles[YAW] += (fAxisValue * joy_yawsensitivity->value) * speed * 180.0; } - } } break; @@ -863,18 +845,6 @@ void IN_JoyMove ( float frametime, usercmd_t *cmd ) { viewangles[PITCH] += (fAxisValue * joy_pitchsensitivity->value) * speed * 180.0; } - V_StopPitchDrift(); - } - else - { - // no pitch movement - // disable pitch return-to-center unless requested by user - // *** this code can be removed when the lookspring bug is fixed - // *** the bug always has the lookspring feature on - if( lookspring->value == 0.0 ) - { - V_StopPitchDrift(); - } } } break; @@ -944,4 +914,4 @@ void IN_Init (void) IN_StartupMouse (); IN_StartupJoystick (); -} \ No newline at end of file +}