From 39e89b5986778641e75bb72f0f81048b4b35b383 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Thu, 21 Sep 2006 05:08:42 +0000 Subject: [PATCH] EndGame in GameLoop --- stepmania/src/GameLoop.cpp | 3 +++ stepmania/src/StepMania.cpp | 3 --- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/stepmania/src/GameLoop.cpp b/stepmania/src/GameLoop.cpp index 4e7b466638..2666d2d265 100644 --- a/stepmania/src/GameLoop.cpp +++ b/stepmania/src/GameLoop.cpp @@ -215,6 +215,9 @@ void GameLoop::RunGameLoop() SCREENMAN->Draw(); } + /* If we ended mid-game, finish up. */ + GAMESTATE->EndGame(); + if( ChangeAppPri() ) HOOKS->UnBoostPriority(); } diff --git a/stepmania/src/StepMania.cpp b/stepmania/src/StepMania.cpp index cef588c3c4..d657e51f5f 100644 --- a/stepmania/src/StepMania.cpp +++ b/stepmania/src/StepMania.cpp @@ -1117,9 +1117,6 @@ int main(int argc, char* argv[]) else GameLoop::RunGameLoop(); - /* If we ended mid-game, finish up. */ - GAMESTATE->EndGame(); - PREFSMAN->SavePrefsToDisk(); ShutdownGame();