From 1aa67cbc9630505452afa23e2db30c52a34178e4 Mon Sep 17 00:00:00 2001 From: Kirben Date: Mon, 18 May 2015 17:12:08 +1000 Subject: AGOS: Revert last change for PC version of Waxworks. --- engines/agos/rooms.cpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'engines/agos') 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(); -- cgit v1.2.3