aboutsummaryrefslogtreecommitdiff
path: root/engines/adl/hires2.cpp
diff options
context:
space:
mode:
authorWalter van Niftrik2016-08-27 20:20:29 +0200
committerWalter van Niftrik2016-08-28 11:23:34 +0200
commit70588aecdc9df737821dc37c466b4274b5f76549 (patch)
tree55aa7f24bc7037702099dcfc86c83b7b03b8bef8 /engines/adl/hires2.cpp
parent0a053e4ce4fa440172792e00ebfaa676b412c846 (diff)
downloadscummvm-rg350-70588aecdc9df737821dc37c466b4274b5f76549.tar.gz
scummvm-rg350-70588aecdc9df737821dc37c466b4274b5f76549.tar.bz2
scummvm-rg350-70588aecdc9df737821dc37c466b4274b5f76549.zip
ADL: Load hires4 verbs, nouns and items
Diffstat (limited to 'engines/adl/hires2.cpp')
-rw-r--r--engines/adl/hires2.cpp26
1 files changed, 1 insertions, 25 deletions
diff --git a/engines/adl/hires2.cpp b/engines/adl/hires2.cpp
index d0e459c96c..34de51885a 100644
--- a/engines/adl/hires2.cpp
+++ b/engines/adl/hires2.cpp
@@ -157,31 +157,7 @@ void HiRes2Engine::initGameState() {
stream.reset(_disk->createReadStream(0x21, 0x0, 0x00, 2));
- byte id;
- while ((id = stream->readByte()) != 0xff) {
- Item item = Item();
- item.id = id;
- item.noun = stream->readByte();
- item.room = stream->readByte();
- item.picture = stream->readByte();
- item.isLineArt = stream->readByte(); // Is this still used in this way?
- item.position.x = stream->readByte();
- item.position.y = stream->readByte();
- item.state = stream->readByte();
- item.description = stream->readByte();
-
- stream->readByte(); // Struct size
-
- byte picListSize = stream->readByte();
-
- // Flag to keep track of what has been drawn on the screen
- stream->readByte();
-
- for (uint i = 0; i < picListSize; ++i)
- item.roomPictures.push_back(stream->readByte());
-
- _state.items.push_back(item);
- }
+ loadItems(*stream);
}
Engine *HiRes2Engine_create(OSystem *syst, const AdlGameDescription *gd) {