diff options
author | Nicola Mettifogo | 2008-07-11 13:06:28 +0000 |
---|---|---|
committer | Nicola Mettifogo | 2008-07-11 13:06:28 +0000 |
commit | 8ed023142a9ce0ee825eb3d6c33759281d68357b (patch) | |
tree | fe01c86cc8d04a88fb82a29e79279c25c4e8e922 /engines/parallaction/walk.cpp | |
parent | fe655836575214c33c82120e9dd714b95a96e475 (diff) | |
download | scummvm-rg350-8ed023142a9ce0ee825eb3d6c33759281d68357b.tar.gz scummvm-rg350-8ed023142a9ce0ee825eb3d6c33759281d68357b.tar.bz2 scummvm-rg350-8ed023142a9ce0ee825eb3d6c33759281d68357b.zip |
Moved program and command execution code out of the engine, into their own brand new
classes.
svn-id: r33003
Diffstat (limited to 'engines/parallaction/walk.cpp')
-rw-r--r-- | engines/parallaction/walk.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/parallaction/walk.cpp b/engines/parallaction/walk.cpp index 0a8ded9e29..7d74dd0e0a 100644 --- a/engines/parallaction/walk.cpp +++ b/engines/parallaction/walk.cpp @@ -347,7 +347,7 @@ uint16 Parallaction::checkDoor() { _zoneTrap = nullZonePtr; } else { - runCommands(z->_commands, z); + _cmdExec->run(z->_commands, z); } } @@ -356,13 +356,13 @@ uint16 Parallaction::checkDoor() { if (z) { setLocationFlags(kFlagsEnter); - runCommands(z->_commands, z); + _cmdExec->run(z->_commands, z); clearLocationFlags(kFlagsEnter); _zoneTrap = z; } else if (_zoneTrap) { setLocationFlags(kFlagsExit); - runCommands(_zoneTrap->_commands, _zoneTrap); + _cmdExec->run(_zoneTrap->_commands, _zoneTrap); clearLocationFlags(kFlagsExit); _zoneTrap = nullZonePtr; } |