[Scummvm-cvs-logs] SF.net SVN: scummvm: [29452] scummvm/trunk/engines/lure/lure.cpp
dreammaster at users.sourceforge.net
dreammaster at users.sourceforge.net
Thu Nov 8 12:55:51 CET 2007
Revision: 29452
http://scummvm.svn.sourceforge.net/scummvm/?rev=29452&view=rev
Author: dreammaster
Date: 2007-11-08 03:55:51 -0800 (Thu, 08 Nov 2007)
Log Message:
-----------
Reordered construction of game instance so that the sounds played in the introduction can properly check the sound flag status
Modified Paths:
--------------
scummvm/trunk/engines/lure/lure.cpp
Modified: scummvm/trunk/engines/lure/lure.cpp
===================================================================
--- scummvm/trunk/engines/lure/lure.cpp 2007-11-08 11:06:24 UTC (rev 29451)
+++ scummvm/trunk/engines/lure/lure.cpp 2007-11-08 11:55:51 UTC (rev 29452)
@@ -117,6 +117,8 @@
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 @@
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;
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list