aboutsummaryrefslogtreecommitdiff
path: root/engines/illusions/backgroundresource.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/illusions/backgroundresource.cpp')
-rw-r--r--engines/illusions/backgroundresource.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/engines/illusions/backgroundresource.cpp b/engines/illusions/backgroundresource.cpp
index bdce1c4669..6c7808c33e 100644
--- a/engines/illusions/backgroundresource.cpp
+++ b/engines/illusions/backgroundresource.cpp
@@ -173,6 +173,18 @@ void BackgroundResource::load(byte *data, uint32 dataSize) {
_scaleLayers[i].load(data, stream);
}
+ // Load priority layers
+ stream.seek(0x14);
+ _priorityLayersCount = stream.readUint16LE();
+ _priorityLayers = new PriorityLayer[_priorityLayersCount];
+ stream.seek(0x34);
+ uint32 priorityLayersOffs = stream.readUint32LE();
+ debug("_priorityLayersCount: %d", _priorityLayersCount);
+ for (uint i = 0; i < _priorityLayersCount; ++i) {
+ stream.seek(priorityLayersOffs + i * 12);
+ _priorityLayers[i].load(data, stream);
+ }
+
}
int BackgroundResource::findMasterBgIndex() {