diff options
| author | navewindre <boneyaard@gmail.com> | 2025-11-27 17:19:02 +0100 |
|---|---|---|
| committer | navewindre <boneyaard@gmail.com> | 2025-11-27 17:21:48 +0100 |
| commit | e3de3ba5162f7ddd5005911124d4333e140fd984 (patch) | |
| tree | efb2d3851940ba1b70f0105611cddb17344e7e32 /src/game/player.cpp | |
| parent | 5c8bbc3bc618068af1f7d6f2829c4346570c2ab9 (diff) | |
bunch o stuff
Diffstat (limited to 'src/game/player.cpp')
| -rw-r--r-- | src/game/player.cpp | 6 |
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; |
