From 92c1abc665e3a77301d3e38a9785e70b7ce3efe4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nguy=E1=BB=85n=20Gia=20Phong?= Date: Fri, 10 Sep 2021 17:33:32 +0700 Subject: Fix camera look --- src/GameTick.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/GameTick.cpp') 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) -- cgit v1.2.3