aboutsummaryrefslogtreecommitdiff
path: root/engines/prince/script.cpp
diff options
context:
space:
mode:
authorlukaslw2014-07-14 03:26:17 +0200
committerlukaslw2014-07-14 03:26:17 +0200
commitb0c454fc9ba282f5f72a0c69a6b897e38eaddb82 (patch)
tree52c304d0d2036978354375c01a6aee4e507c9999 /engines/prince/script.cpp
parent52dbd8866e418c4f0f7861216e14a70263822949 (diff)
downloadscummvm-rg350-b0c454fc9ba282f5f72a0c69a6b897e38eaddb82.tar.gz
scummvm-rg350-b0c454fc9ba282f5f72a0c69a6b897e38eaddb82.tar.bz2
scummvm-rg350-b0c454fc9ba282f5f72a0c69a6b897e38eaddb82.zip
PRINCE: Pathfinding - bug fixing, first correct path
Diffstat (limited to 'engines/prince/script.cpp')
-rw-r--r--engines/prince/script.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/engines/prince/script.cpp b/engines/prince/script.cpp
index 36cd991bfd..14fae2b42f 100644
--- a/engines/prince/script.cpp
+++ b/engines/prince/script.cpp
@@ -1588,10 +1588,12 @@ void Interpreter::O_SETFGCODE() {
void Interpreter::O_STOPHERO() {
uint16 heroId = readScriptFlagValue();
-
+ if (!heroId) {
+ _vm->_mainHero->freeOldMove();
+ } else if (heroId == 1) {
+ _vm->_secondHero->freeOldMove();
+ }
debugInterpreter("O_STOPHERO heroId %d", heroId);
-
- // clear move steps for hero
}
void Interpreter::O_ANIMUPDATEOFF() {