aboutsummaryrefslogtreecommitdiff
path: root/engines/adl/hires2.cpp
diff options
context:
space:
mode:
authorWalter van Niftrik2016-08-28 01:13:15 +0200
committerWalter van Niftrik2016-08-28 11:23:34 +0200
commitbcd5df5c6e94a1d6c9cfb97f27a0306b8ff54e60 (patch)
tree550a2fc8db6f03291ffb089abb50203459e23c9d /engines/adl/hires2.cpp
parent70588aecdc9df737821dc37c466b4274b5f76549 (diff)
downloadscummvm-rg350-bcd5df5c6e94a1d6c9cfb97f27a0306b8ff54e60.tar.gz
scummvm-rg350-bcd5df5c6e94a1d6c9cfb97f27a0306b8ff54e60.tar.bz2
scummvm-rg350-bcd5df5c6e94a1d6c9cfb97f27a0306b8ff54e60.zip
ADL: Load hires4 rooms
Diffstat (limited to 'engines/adl/hires2.cpp')
-rw-r--r--engines/adl/hires2.cpp14
1 files changed, 1 insertions, 13 deletions
diff --git a/engines/adl/hires2.cpp b/engines/adl/hires2.cpp
index 34de51885a..b662142f0c 100644
--- a/engines/adl/hires2.cpp
+++ b/engines/adl/hires2.cpp
@@ -142,21 +142,9 @@ void HiRes2Engine::initGameState() {
_state.vars.resize(IDI_HR2_NUM_VARS);
StreamPtr stream(_disk->createReadStream(0x21, 0x5, 0x0e, 7));
-
- for (uint i = 0; i < IDI_HR2_NUM_ROOMS; ++i) {
- Room room;
- stream->readByte(); // number
- for (uint j = 0; j < 6; ++j)
- room.connections[j] = stream->readByte();
- room.data = readDataBlockPtr(*stream);
- room.picture = stream->readByte();
- room.curPicture = stream->readByte();
- room.isFirstTime = stream->readByte();
- _state.rooms.push_back(room);
- }
+ loadRooms(*stream, IDI_HR2_NUM_ROOMS);
stream.reset(_disk->createReadStream(0x21, 0x0, 0x00, 2));
-
loadItems(*stream);
}