[Scummvm-cvs-logs] SF.net SVN: scummvm:[39722] scummvm/trunk/engines/parallaction/ parallaction_br.cpp

peres001 at users.sourceforge.net peres001 at users.sourceforge.net
Sat Mar 28 15:03:51 CET 2009


Revision: 39722
          http://scummvm.svn.sourceforge.net/scummvm/?rev=39722&view=rev
Author:   peres001
Date:     2009-03-28 14:03:51 +0000 (Sat, 28 Mar 2009)

Log Message:
-----------
Save zone and animation flags when a location is closed. This fixes bug #2718462.

Modified Paths:
--------------
    scummvm/trunk/engines/parallaction/parallaction_br.cpp

Modified: scummvm/trunk/engines/parallaction/parallaction_br.cpp
===================================================================
--- scummvm/trunk/engines/parallaction/parallaction_br.cpp	2009-03-28 12:58:34 UTC (rev 39721)
+++ scummvm/trunk/engines/parallaction/parallaction_br.cpp	2009-03-28 14:03:51 UTC (rev 39722)
@@ -207,6 +207,16 @@
 
 	_gfx->freeLocationObjects();
 
+	// save zone and animation flags
+	ZoneList::iterator zit = _location._zones.begin();
+	for ( ; zit != _location._zones.end(); ++zit) {
+		restoreOrSaveZoneFlags(*zit, false);
+	}
+	AnimationList::iterator ait = _location._animations.begin();
+	for ( ; ait != _location._animations.end(); ++ait) {
+		restoreOrSaveZoneFlags(*ait, false);
+	}
+
 	_location._animations.remove(_char._ani);
 	_location.cleanup(removeAll);
 	_location._animations.push_front(_char._ani);


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