aboutsummaryrefslogtreecommitdiff
path: root/engines/agos
diff options
context:
space:
mode:
authorKirben2015-05-18 17:12:08 +1000
committerKirben2015-05-18 17:12:08 +1000
commit1aa67cbc9630505452afa23e2db30c52a34178e4 (patch)
treeee76ff8bd175e7f5d222d64e400f0e9903f0f251 /engines/agos
parent08744f4ebf140a826715af2c295f4c3cc393bce2 (diff)
downloadscummvm-rg350-1aa67cbc9630505452afa23e2db30c52a34178e4.tar.gz
scummvm-rg350-1aa67cbc9630505452afa23e2db30c52a34178e4.tar.bz2
scummvm-rg350-1aa67cbc9630505452afa23e2db30c52a34178e4.zip
AGOS: Revert last change for PC version of Waxworks.
Diffstat (limited to 'engines/agos')
-rw-r--r--engines/agos/rooms.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/engines/agos/rooms.cpp b/engines/agos/rooms.cpp
index 0eac79e83f..c79b029fdc 100644
--- a/engines/agos/rooms.cpp
+++ b/engines/agos/rooms.cpp
@@ -446,13 +446,14 @@ bool AGOSEngine::loadRoomItems(uint16 room) {
itemTmp = derefItem(itemTmp->next);
}
+ }
+
+ uint16 num = (itemNum - _itemArrayInited);
+ item->state = _roomStates[num].state;
+ item->classFlags = _roomStates[num].classFlags;
+ SubRoom *subRoom = (SubRoom *)findChildOfType(item, kRoomType);
+ subRoom->roomExitStates = _roomStates[num].roomExitStates;
- uint16 num = (itemNum - _itemArrayInited);
- item->state = _roomStates[num].state;
- item->classFlags = _roomStates[num].classFlags;
- SubRoom *subRoom = (SubRoom *)findChildOfType(item, kRoomType);
- subRoom->roomExitStates = _roomStates[num].roomExitStates;
- }
}
in.close();