diff options
| author | Nguyễn Gia Phong <mcsinyx@disroot.org> | 2021-09-10 17:33:32 +0700 |
|---|---|---|
| committer | Nguyễn Gia Phong <mcsinyx@disroot.org> | 2021-09-10 17:33:32 +0700 |
| commit | 92c1abc665e3a77301d3e38a9785e70b7ce3efe4 (patch) | |
| tree | 0091034a51fc13f2d18d8ebf6b2219f21809a8d2 /src/GameTick.cpp | |
| parent | 5247e298e05a623e001f0be01238a03b61d715b8 (diff) | |
| download | blackshades-92c1abc665e3a77301d3e38a9785e70b7ce3efe4.tar.gz | |
Fix camera look
Diffstat (limited to 'src/GameTick.cpp')
| -rw-r--r-- | src/GameTick.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/GameTick.cpp b/src/GameTick.cpp index 6536547..61e5dec 100644 --- a/src/GameTick.cpp +++ b/src/GameTick.cpp @@ -157,7 +157,7 @@ void Game::handleMenu() initGame(this); } - MoveMouse(oldmouseloc.h, oldmouseloc.v, &mouseloc); + GetMouse(&mouseloc); if (visions) alSourcePlay(gSourceID[visionsound]); @@ -3442,9 +3442,7 @@ void Game::Tick() if (paused || person[0].currentanimation== diveanim || person[0].currentanimation == throwanim) - MoveMouse(oldmouseloc.h, oldmouseloc.v, &mouseloc); - else - oldmouseloc = mouseloc; + GetMouse(&mouseloc); setListener(facing); if (score < 0) |
