Skip to content

Commit

Permalink
SHERLOCK: Fix leaving scenes via exit zones
Browse files Browse the repository at this point in the history
  • Loading branch information
dreammaster committed Apr 22, 2015
1 parent 214cd61 commit 0a4b722
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions engines/sherlock/objects.cpp
Expand Up @@ -161,11 +161,15 @@ void Sprite::adjustSprite() {
Exit *exit = scene.checkForExit(charRect);

if (exit) {
scene._hsavedPos = exit->_people;
scene._hsavedFs = exit->_peopleDir;
scene._goToScene = exit->_scene;

if (scene._hsavedFs > 100 && scene._hsavedPos.x < 1)
scene._hsavedPos.x = 100;
if (exit->_people.x != 0) {
scene._hsavedPos = exit->_people;
scene._hsavedFs = exit->_peopleDir;

if (scene._hsavedFs > 100 && scene._hsavedPos.x < 1)
scene._hsavedPos.x = 100;
}
}
}
}
Expand Down

0 comments on commit 0a4b722

Please sign in to comment.