diff options
| author | Nguyễn Gia Phong <cnx@loang.net> | 2023-11-26 02:56:38 +0900 |
|---|---|---|
| committer | Nguyễn Gia Phong <cnx@loang.net> | 2023-11-26 02:56:38 +0900 |
| commit | 91197fe7275f1902f3e4efa916e4c58f80282412 (patch) | |
| tree | 9d453ad8c34d2d2e13a1a24dbf6edc065fe4285e /src/GameTick.cpp | |
| parent | 2100f99e74f7f5d828f60984d6c98bfffdefec2f (diff) | |
| download | blackshades-91197fe7275f1902f3e4efa916e4c58f80282412.tar.gz | |
Fix psychic recoil
Fixes: https://todo.sr.ht/~cnx/blackshades/24
Diffstat (limited to 'src/GameTick.cpp')
| -rw-r--r-- | src/GameTick.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/GameTick.cpp b/src/GameTick.cpp index 932a38c..21d7858 100644 --- a/src/GameTick.cpp +++ b/src/GameTick.cpp @@ -1671,8 +1671,10 @@ void Game::Tick() rot2 = crouch ? 1.5f : 2.3f; break; } - camera.rotation -= rot; - camera.rotation2 -= rot2; + if (j == 0) { // player + camera.rotation -= rot; + camera.rotation2 -= rot2; + } ALuint gunsound; switch (person[j].whichgun) { |
