From f384783335b1a65bbb03c80c9fd781b8c442e13a Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Wed, 13 Jul 2005 00:28:37 +0000 Subject: [PATCH] cleanup --- stepmania/src/StepMania.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/stepmania/src/StepMania.cpp b/stepmania/src/StepMania.cpp index 8f3259663d..8a569b6028 100644 --- a/stepmania/src/StepMania.cpp +++ b/stepmania/src/StepMania.cpp @@ -1166,6 +1166,9 @@ int main(int argc, char* argv[]) /* Run the main loop. */ GameLoop(); + /* If we ended mid-game, finish up. */ + GAMESTATE->EndGame(); + PREFSMAN->SaveGlobalPrefsToDisk(); SaveGamePrefsToDisk(); @@ -1552,8 +1555,6 @@ static void GameLoop() usleep( 1000 ); // give some time to other processes and threads #endif } - - GAMESTATE->EndGame(); } /*