diff options
author | Paul Gilbert | 2014-05-26 11:29:03 -0400 |
---|---|---|
committer | Paul Gilbert | 2014-05-26 11:29:03 -0400 |
commit | d42d523ca2971f3f370476c210edf74ce2b48c5c (patch) | |
tree | ed65b00421c88ed97cbb2a552b1c8a655617a154 | |
parent | ec38016044e674fadc0e8b370afd5cd25110b392 (diff) | |
download | scummvm-rg350-d42d523ca2971f3f370476c210edf74ce2b48c5c.tar.gz scummvm-rg350-d42d523ca2971f3f370476c210edf74ce2b48c5c.tar.bz2 scummvm-rg350-d42d523ca2971f3f370476c210edf74ce2b48c5c.zip |
MADS: Fix walking to dynamic hotspots
-rw-r--r-- | engines/mads/action.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/mads/action.cpp b/engines/mads/action.cpp index 1db143aaad..0b853e1182 100644 --- a/engines/mads/action.cpp +++ b/engines/mads/action.cpp @@ -341,7 +341,7 @@ void MADSAction::startAction() { startWalkingDirectly(hs._feetPos.x); } else if (hs._feetPos.x == 0) { player._prepareWalkFacing = hs._facing; - } else if (_savedFields._commandSource == CAT_NONE || hs._cursor >= CURSOR_WAIT) { + } else if (_savedFields._commandSource == CAT_NONE || hs._cursor < CURSOR_WAIT) { player._needToWalk = true; player._prepareWalkPos = hs._feetPos; } @@ -351,7 +351,7 @@ void MADSAction::startAction() { } } - if (hotspotId >= 0 && hotspotId < (int)hotspots.size()) { + if (hotspotId >= 0) { Hotspot &hs = hotspots[hotspotId]; if (hs._feetPos.x == -1 || hs._feetPos.x == -3) { |