aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Gilbert2015-04-29 21:38:06 -1000
committerPaul Gilbert2015-04-29 21:38:06 -1000
commitf34b9a59b52460cae64d526cf9d9eccba922e376 (patch)
treea2fe7c1d4aeae0f61a82298154ca65d1fbc104d3
parentef4ec4cde3ec15d7370ef739e4fa6d863e7ccee5 (diff)
downloadscummvm-rg350-f34b9a59b52460cae64d526cf9d9eccba922e376.tar.gz
scummvm-rg350-f34b9a59b52460cae64d526cf9d9eccba922e376.tar.bz2
scummvm-rg350-f34b9a59b52460cae64d526cf9d9eccba922e376.zip
SHERLOCK: Fix Sherlock gliding when walking vertically
-rw-r--r--engines/sherlock/people.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/sherlock/people.cpp b/engines/sherlock/people.cpp
index 2eff1a0973..ed6e0607bd 100644
--- a/engines/sherlock/people.cpp
+++ b/engines/sherlock/people.cpp
@@ -386,7 +386,9 @@ void People::setWalking() {
// If we're on the overhead map, set the sequence so we keep moving
// in the same direction
- _player._sequenceNumber = (oldDirection == -1) ? MAP_RIGHT : oldDirection;
+ if (map._active) {
+ _player._sequenceNumber = (oldDirection == -1) ? MAP_RIGHT : oldDirection;
+ }
// Set the delta x
_player._delta.x = (delta.x * 100) / (delta.y / speed.y);