diff options
| author | Nguyễn Gia Phong <mcsinyx@disroot.org> | 2021-06-22 10:25:15 +0700 |
|---|---|---|
| committer | Nguyễn Gia Phong <mcsinyx@disroot.org> | 2021-06-22 10:25:15 +0700 |
| commit | f842bf6f2544457ecd488157a74dba8f8a2ea1c4 (patch) | |
| tree | 39222d031e4e6bd802d48a12f215a16ddc262a31 /src/GameTick.cpp | |
| parent | 325dca9f212f9fd44cd10a8180529970c7a08c72 (diff) | |
| download | blackshades-f842bf6f2544457ecd488157a74dba8f8a2ea1c4.tar.gz | |
Remove Mac OS 9 specific code
Except for MacInput, which is used for all keys unfortunately.
Diffstat (limited to 'src/GameTick.cpp')
| -rw-r--r-- | src/GameTick.cpp | 55 |
1 files changed, 6 insertions, 49 deletions
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){ |
