Turned free___() routines into proper destructors for Zone, Animation and Program, and added memo comments for porting the engine to Common::List<>.

svn-id: r26399
This commit is contained in:
Nicola Mettifogo 2007-04-07 09:31:24 +00:00
parent 83610641c7
commit 9367371107
9 changed files with 185 additions and 145 deletions

View file

@ -81,10 +81,14 @@ void Parallaction::doLoadGame(uint16 slot) {
f->readLine(s, 15);
// TODO (LIST): the very same code can be found in _c_finito().
// Why aren't we clearing Animations too, anyway?
_engineFlags |= kEngineQuit;
freeZones(_zones._next);
freeNodeList(_zones._next);
_zones._next = NULL;
_engineFlags &= ~kEngineQuit;
_numLocations = atoi(s);