aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorPaul Gilbert2007-11-08 11:55:51 +0000
committerPaul Gilbert2007-11-08 11:55:51 +0000
commitc2594cb3f2675021537008b9501291004316802f (patch)
treed4cb72dd856ee92b5d92465149d887e2e46c8a4a /engines
parent27a1f388629ab9afa444d9de354cd9529366f83a (diff)
downloadscummvm-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
Diffstat (limited to 'engines')
-rw-r--r--engines/lure/lure.cpp6
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;
}