diff options
author | Paul Gilbert | 2007-11-08 11:55:51 +0000 |
---|---|---|
committer | Paul Gilbert | 2007-11-08 11:55:51 +0000 |
commit | c2594cb3f2675021537008b9501291004316802f (patch) | |
tree | d4cb72dd856ee92b5d92465149d887e2e46c8a4a | |
parent | 27a1f388629ab9afa444d9de354cd9529366f83a (diff) | |
download | scummvm-rg350-c2594cb3f2675021537008b9501291004316802f.tar.gz scummvm-rg350-c2594cb3f2675021537008b9501291004316802f.tar.bz2 scummvm-rg350-c2594cb3f2675021537008b9501291004316802f.zip |
Reordered construction of game instance so that the sounds played in the introduction can properly check the sound flag status
svn-id: r29452
-rw-r--r-- | engines/lure/lure.cpp | 6 |
1 files 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; } |