diff options
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){ |