aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorEugene Sandulenko2015-12-21 13:08:09 +0100
committerEugene Sandulenko2015-12-27 15:40:58 +0100
commitd5c3b45756b7aced60b39d621920ba9b6b8ab09b (patch)
tree4acdb07f6953ed67bc34e36ede79d9e8e346b028 /engines
parent5b957c4b06b3b1160b97d17ab78d86d7e78c46c1 (diff)
downloadscummvm-rg350-d5c3b45756b7aced60b39d621920ba9b6b8ab09b.tar.gz
scummvm-rg350-d5c3b45756b7aced60b39d621920ba9b6b8ab09b.tar.bz2
scummvm-rg350-d5c3b45756b7aced60b39d621920ba9b6b8ab09b.zip
WAGE: Added enhanced Skepters pattern loading
Diffstat (limited to 'engines')
-rw-r--r--engines/wage/world.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/engines/wage/world.cpp b/engines/wage/world.cpp
index 776d5df80a..d84f31bfe4 100644
--- a/engines/wage/world.cpp
+++ b/engines/wage/world.cpp
@@ -218,6 +218,18 @@ bool World::loadWorld(Common::MacResManager *resMan) {
}
delete res;
+ } else {
+ /* Enchanted Scepters did not use the PAT# resource for the textures. */
+ res = resMan->getResource(MKTAG('C','O','D','E'), 1);
+ if (res != NULL) {
+ res->skip(0x55ac);
+ for (int i = 0; i < 29; i++) {
+ byte *pattern = (byte *)malloc(8);
+
+ res->read(pattern, 8);
+ _patterns.push_back(pattern);
+ }
+ }
}
return true;