[Scummvm-cvs-logs] SF.net SVN: scummvm: [28358] scummvm/trunk/engines/saga/scene.cpp

thebluegr at users.sourceforge.net thebluegr at users.sourceforge.net
Tue Jul 31 17:36:38 CEST 2007


Revision: 28358
          http://scummvm.svn.sourceforge.net/scummvm/?rev=28358&view=rev
Author:   thebluegr
Date:     2007-07-31 08:36:38 -0700 (Tue, 31 Jul 2007)

Log Message:
-----------
It's now possible to return to the chapter selection screen correctly in IHNM

Modified Paths:
--------------
    scummvm/trunk/engines/saga/scene.cpp

Modified: scummvm/trunk/engines/saga/scene.cpp
===================================================================
--- scummvm/trunk/engines/saga/scene.cpp	2007-07-31 13:49:18 UTC (rev 28357)
+++ scummvm/trunk/engines/saga/scene.cpp	2007-07-31 15:36:38 UTC (rev 28358)
@@ -579,7 +579,16 @@
 			_vm->_interface->setLeftPortrait(0);
 
 		_vm->_anim->freeCutawayList();
-		_vm->_script->freeModules();
+		// FIXME: Freed script modules are not reloaded correctly when changing chapters.
+		// This is apparent when returning back to the character selection screen,
+		// where the scene script module is loaded incorrectly
+		// Don't free them for now, but free them on game exit, like ITE.
+		// This has no impact on the game itself (other than increased memory usage),
+		// as each chapter uses a different module slot
+		// TODO: Find out why the script modules are not loaded correctly when
+		// changing chapters and uncomment this again
+		//_vm->_script->freeModules();
+
 		// deleteAllScenes();
 
 		// installSomeAlarm()


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