aboutsummaryrefslogtreecommitdiff
path: root/queen
diff options
context:
space:
mode:
authorGregory Montoir2003-11-03 14:47:05 +0000
committerGregory Montoir2003-11-03 14:47:05 +0000
commitb6d8e8187bb9011dd4501adf8ba2fe2e905f96da (patch)
tree711f8280da5ca2a9dcc8220f995d840d0c80c5ce /queen
parentb3b0118292df23a5d4bf0e9b32a56fb4ddfba1ea (diff)
downloadscummvm-rg350-b6d8e8187bb9011dd4501adf8ba2fe2e905f96da.tar.gz
scummvm-rg350-b6d8e8187bb9011dd4501adf8ba2fe2e905f96da.tar.bz2
scummvm-rg350-b6d8e8187bb9011dd4501adf8ba2fe2e905f96da.zip
enable room switching
svn-id: r11089
Diffstat (limited to 'queen')
-rw-r--r--queen/logic.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/queen/logic.cpp b/queen/logic.cpp
index a01af6e0f7..c1a6d9a8ff 100644
--- a/queen/logic.cpp
+++ b/queen/logic.cpp
@@ -1749,6 +1749,7 @@ int16 Logic::joeWalkTo(int16 x, int16 y, bool mustWalk) {
_newRoom = 0;
if (_entryObj != 0 && _cmd->selectedAction().value() != VERB_CLOSE) {
+ _newRoom = _objectData[_entryObj].room;
// because this is an exit object, see if there is
// a walk off point and set (x,y) accordingly
WalkOffData *wod = walkOffPointForObject(k + _cmd->selectedNoun());