Skip to content

Commit

Permalink
SHERLOCK: Fix Sherlock gliding when walking vertically
Browse files Browse the repository at this point in the history
  • Loading branch information
dreammaster committed Apr 30, 2015
1 parent ef4ec4c commit f34b9a5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion engines/sherlock/people.cpp
Expand Up @@ -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);
Expand Down

0 comments on commit f34b9a5

Please sign in to comment.