aboutsummaryrefslogtreecommitdiff
path: root/src/GameTick.cpp
diff options
context:
space:
mode:
authorNguyễn Gia Phong <mcsinyx@disroot.org>2021-09-14 23:58:50 +0700
committerNguyễn Gia Phong <mcsinyx@disroot.org>2021-09-14 23:58:50 +0700
commit0e9c124d6ee480e20be07f955dd0ffe486091a1e (patch)
treea87d21c55315183a38581200464ff73ae56e3867 /src/GameTick.cpp
parent9505ee252e2670aa40a2c3db7e9101940099f2b2 (diff)
downloadblackshades-0e9c124d6ee480e20be07f955dd0ffe486091a1e.tar.gz
Force menu and hardware cursor
Diffstat (limited to 'src/GameTick.cpp')
-rw-r--r--src/GameTick.cpp8
1 files changed, 3 insertions, 5 deletions
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 {