summaryrefslogtreecommitdiff
path: root/src/game/player.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/player.cpp')
-rw-r--r--src/game/player.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/game/player.cpp b/src/game/player.cpp
index c4b9c9a..51d1cf8 100644
--- a/src/game/player.cpp
+++ b/src/game/player.cpp
@@ -38,9 +38,9 @@ void capture_mouse( PLAYER* p ) {
input_capture_mouse( false );
}
- if( input.mouse_captured ) {
- *yaw += input.mouse.pos_delta.x * input.mouse_sensitivity;
- *pitch -= input.mouse.pos_delta.y * input.mouse_sensitivity;
+ if( input.mouselock ) {
+ *yaw += input.mouse.pos_delta.x * input.msens;
+ *pitch -= input.mouse.pos_delta.y * input.msens;
if( *pitch > 89.f ) *pitch = 89.f;
if( *pitch < -89.f ) *pitch = -89.f;