diff options
author | Joseph-Eugene Winzer | 2017-12-21 03:49:25 +0100 |
---|---|---|
committer | Thierry Crozat | 2018-01-23 02:15:44 +0000 |
commit | 639bc10906042d8c3950962e47812a61764c6af4 (patch) | |
tree | a9215db6c6f5f3e535868b3018d338d139e4d62e | |
parent | dbb2632d1ee99be7dd99b14e0b47eb7d79c91b40 (diff) | |
download | scummvm-rg350-639bc10906042d8c3950962e47812a61764c6af4.tar.gz scummvm-rg350-639bc10906042d8c3950962e47812a61764c6af4.tar.bz2 scummvm-rg350-639bc10906042d8c3950962e47812a61764c6af4.zip |
SUPERNOVA: Disables OCCUPIED flag correctly
-rw-r--r-- | engines/supernova/state.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/supernova/state.cpp b/engines/supernova/state.cpp index ce1fbe8b29..bfd0951eac 100644 --- a/engines/supernova/state.cpp +++ b/engines/supernova/state.cpp @@ -1041,8 +1041,9 @@ void GameManager::walk(int imgId) { void GameManager::guardWalkEvent() { _prevImgId = 0; - bool behind = (!_rooms[BCORRIDOR]->getObject(_state._origin + 4)->hasProperty(OCCUPIED) || _rooms[BCORRIDOR]->getObject(_state._origin + 4)->hasProperty(OPENED)); - _rooms[BCORRIDOR]->getObject(_state._origin + 4)->resetProperty(OCCUPIED); + bool behind = (!_rooms[BCORRIDOR]->getObject(_state._origin + 4)->hasProperty(OCCUPIED) || + _rooms[BCORRIDOR]->getObject(_state._origin + 4)->hasProperty(OPENED)); + _rooms[BCORRIDOR]->getObject(_state._origin + 4)->disableProperty(OCCUPIED); if (_currentRoom == _rooms[BCORRIDOR]) { if (_vm->_messageDisplayed) _vm->removeMessage(); |