From f842bf6f2544457ecd488157a74dba8f8a2ea1c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nguy=E1=BB=85n=20Gia=20Phong?= Date: Tue, 22 Jun 2021 10:25:15 +0700 Subject: Remove Mac OS 9 specific code Except for MacInput, which is used for all keys unfortunately. --- src/GameTick.cpp | 55 ++++++------------------------------------------------- 1 file changed, 6 insertions(+), 49 deletions(-) (limited to 'src/GameTick.cpp') diff --git a/src/GameTick.cpp b/src/GameTick.cpp index 4249b05..045f903 100644 --- a/src/GameTick.cpp +++ b/src/GameTick.cpp @@ -229,67 +229,35 @@ void Game::Tick(){ } if(Button()&&mouseoverbutton==2&&!gameinprogress&&!oldbutton){ - flashamount=1; - flashr=1;flashg=0;flashb=0; - alSourcePlay(gSourceID[losesound]); - gQuit = true; - if(score>highscore){ - highscore=score; - -#ifdef OS9 - ofstream opstream(":Data:Highscore"); -#else /* TODO */ ofstream opstream("Data/Highscore"); -#endif - opstream << highscore; - + opstream << highscore; opstream << "\n"; - - opstream << beatgame; - + opstream << beatgame; opstream.close(); - } - } if(Button()&&mouseoverbutton==2&&gameinprogress&&!oldbutton){ - flashamount=1; - flashr=1;flashg=1;flashb=1; - alSourcePlay(gSourceID[losesound]); - gameinprogress=0; - if(score>highscore){ - highscore=score; - -#ifdef OS9 - ofstream opstream(":Data:Highscore"); -#else /* TODO */ ofstream opstream("Data/Highscore"); -#endif - opstream << highscore; - + opstream << highscore; opstream << "\n"; - - opstream << beatgame; - + opstream << beatgame; opstream.close(); - } - } if(Button())oldbutton=1; @@ -351,25 +319,14 @@ void Game::Tick(){ alSourcef(gSourceID[whichsong], AL_MAX_GAIN, 1); if(score>highscore){ - highscore=score; - -#ifdef OS9 - ofstream opstream(":Data:Highscore"); -#else /* TODO */ ofstream opstream("Data/Highscore"); -#endif - opstream << highscore; - + opstream << highscore; opstream << "\n"; - - opstream << beatgame; - + opstream << beatgame; opstream.close(); - } - } if(!mainmenu){ -- cgit v1.2.3