[Scummvm-cvs-logs] CVS: scummvm/scumm scummvm.cpp,2.500,2.501
Travis Howell
kirben at users.sourceforge.net
Sun Dec 14 06:20:03 CET 2003
Update of /cvsroot/scummvm/scummvm/scumm
In directory sc8-pr-cvs1:/tmp/cvs-serv859/scumm
Modified Files:
scummvm.cpp
Log Message:
Reset actors in restart()
Index: scummvm.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/scummvm.cpp,v
retrieving revision 2.500
retrieving revision 2.501
diff -u -d -r2.500 -r2.501
--- scummvm.cpp 14 Dec 2003 06:03:18 -0000 2.500
+++ scummvm.cpp 14 Dec 2003 14:19:43 -0000 2.501
@@ -2501,6 +2501,18 @@
for (i = 0; i < _numGlobalObjects; i++)
clearOwnerOf(i);
+ // Reallocate and Reinitialize actors
+ Actor::initActorClass(this);
+ _actors = new Actor[_numActors];
+ for (i = 0; i < _numActors; i++) {
+ _actors[i].number = i;
+ _actors[i].initActor(1);
+
+ // this is from IDB
+ if (_version == 1)
+ _actors[i].setActorCostume(i);
+ }
+
// Reinit things
allocateArrays(); // Reallocate arrays
readIndexFile(); // Reread index (reset objectstate etc)
More information about the Scummvm-git-logs
mailing list