aboutsummaryrefslogtreecommitdiff
path: root/engines/supernova/state.cpp
diff options
context:
space:
mode:
authorJoseph-Eugene Winzer2017-12-19 12:19:07 +0100
committerThierry Crozat2018-01-23 02:15:44 +0000
commitbb8dbdfc682290f3d4da5a9eb50455485351f5c8 (patch)
tree0a9db733996268abbf834dd944e3d9f63b5d182a /engines/supernova/state.cpp
parentb76ac8331ff269210f8a9face931ec39cdb50f5d (diff)
downloadscummvm-rg350-bb8dbdfc682290f3d4da5a9eb50455485351f5c8.tar.gz
scummvm-rg350-bb8dbdfc682290f3d4da5a9eb50455485351f5c8.tar.bz2
scummvm-rg350-bb8dbdfc682290f3d4da5a9eb50455485351f5c8.zip
SUPERNOVA: Fixes game freeze in bcorrdior
Most of the time _objectState[MAX_OBJECT - 1] was used for showing/hiding the GUI, here it was to indicate if the player is currently hidden behind a pillar though.
Diffstat (limited to 'engines/supernova/state.cpp')
-rw-r--r--engines/supernova/state.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/supernova/state.cpp b/engines/supernova/state.cpp
index e199e15d47..6821065214 100644
--- a/engines/supernova/state.cpp
+++ b/engines/supernova/state.cpp
@@ -1091,7 +1091,7 @@ void GameManager::guardWalkEvent() {
walk(18);
}
- if (!_currentRoom->isSectionVisible(kMaxSection - 1)) {
+ if (!_state._playerHidden) {
if (_state._origin & 1)
walk(10);
else