From c2594cb3f2675021537008b9501291004316802f Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Thu, 8 Nov 2007 11:55:51 +0000 Subject: Reordered construction of game instance so that the sounds played in the introduction can properly check the sound flag status svn-id: r29452 --- engines/lure/lure.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/engines/lure/lure.cpp b/engines/lure/lure.cpp index 10f58adf4c..ef05500318 100644 --- a/engines/lure/lure.cpp +++ b/engines/lure/lure.cpp @@ -117,6 +117,8 @@ int LureEngine::go() { error("Sorry - copy protection failed"); } + Game *gameInstance = new Game(); + if (ConfMan.getInt("boot_param") == 0) { // Show the introduction Sound.loadSection(INTRO_SOUND_RESOURCE_ID); @@ -130,12 +132,10 @@ int LureEngine::go() { if (!_events->quitFlag) { // Play the game Sound.loadSection(MAIN_SOUND_RESOURCE_ID); - Game *gameInstance = new Game(); gameInstance->execute(); - delete gameInstance; } - //quitGame(); + delete gameInstance; return 0; } -- cgit v1.2.3