From 0e9c124d6ee480e20be07f955dd0ffe486091a1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nguy=E1=BB=85n=20Gia=20Phong?= Date: Tue, 14 Sep 2021 23:58:50 +0700 Subject: Force menu and hardware cursor --- src/GameTick.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/GameTick.cpp') diff --git a/src/GameTick.cpp b/src/GameTick.cpp index af77e40..760db74 100644 --- a/src/GameTick.cpp +++ b/src/GameTick.cpp @@ -136,8 +136,6 @@ void Game::handleMenu() mouseoverbutton = 1; else if (mousey > 112 && mousey < 182) mouseoverbutton = 2; - } else if (!mainmenuness) { - mouseoverbutton = 1; } oldbutton = button; @@ -157,7 +155,7 @@ void Game::handleMenu() alSourcePlay(gSourceID[visionsound]); gameinprogress = 1; - mainmenu = 0; + setMenu(this, false); break; case 2: if (gameinprogress) { @@ -320,7 +318,7 @@ XYZ Game::aimBot(int j) void Game::Tick() { - if (mainmenu) { + if (this->menu) { handleMenu(); return; } @@ -350,7 +348,7 @@ void Game::Tick() alSourcef(gSourceID[whichsong], AL_MAX_GAIN, 1); alSourcePlay(gSourceID[whichsong]); - mainmenu = beatgame = 1; + setMenu(this, beatgame = true); gameinprogress = 0; saveHighScore(); } else { -- cgit v1.2.3