[Scummvm-cvs-logs] SF.net SVN: scummvm:[42733] scummvm/branches/gsoc2009-draci/engines/draci/ script.cpp
dkasak13 at users.sourceforge.net
dkasak13 at users.sourceforge.net
Sat Jul 25 05:41:29 CEST 2009
Revision: 42733
http://scummvm.svn.sourceforge.net/scummvm/?rev=42733&view=rev
Author: dkasak13
Date: 2009-07-25 03:41:28 +0000 (Sat, 25 Jul 2009)
Log Message:
-----------
Made Script::run() manually mark the last animation index before it executes a program. This is done to prevent Release wreaking havoc if it is unpaired (i.e. if the script forgot to call a Mark first).
Modified Paths:
--------------
scummvm/branches/gsoc2009-draci/engines/draci/script.cpp
Modified: scummvm/branches/gsoc2009-draci/engines/draci/script.cpp
===================================================================
--- scummvm/branches/gsoc2009-draci/engines/draci/script.cpp 2009-07-25 03:37:22 UTC (rev 42732)
+++ scummvm/branches/gsoc2009-draci/engines/draci/script.cpp 2009-07-25 03:41:28 UTC (rev 42733)
@@ -565,6 +565,10 @@
int Script::run(GPL2Program program, uint16 offset) {
+ // Mark the last animation index before we do anything so a Release command
+ // doesn't unload too many animations if we forget to use a Mark command first
+ _vm->_game->setMarkedAnimationIndex(_vm->_anims->getLastIndex());
+
// Stream reader for the whole program
Common::MemoryReadStream reader(program._bytecode, program._length);
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