aboutsummaryrefslogtreecommitdiff
path: root/scumm/gfx.cpp
diff options
context:
space:
mode:
authorJonathan Gray2004-06-26 02:45:17 +0000
committerJonathan Gray2004-06-26 02:45:17 +0000
commitcbf068b638c5d162c331bd5dc23d0293fe0f5c6c (patch)
treeaa85534816bb001e9421711195fba6a1cbf40ca4 /scumm/gfx.cpp
parentdfa7af5b5d7935e2450ba6bdb49461229facd1c3 (diff)
downloadscummvm-rg350-cbf068b638c5d162c331bd5dc23d0293fe0f5c6c.tar.gz
scummvm-rg350-cbf068b638c5d162c331bd5dc23d0293fe0f5c6c.tar.bz2
scummvm-rg350-cbf068b638c5d162c331bd5dc23d0293fe0f5c6c.zip
look for the newer BMAP blocks from later humongous games if we can't find an SMAP block
svn-id: r14060
Diffstat (limited to 'scumm/gfx.cpp')
-rw-r--r--scumm/gfx.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/scumm/gfx.cpp b/scumm/gfx.cpp
index 0a328b686b..a10b37914a 100644
--- a/scumm/gfx.cpp
+++ b/scumm/gfx.cpp
@@ -938,6 +938,10 @@ void Gdi::drawBitmap(const byte *ptr, VirtScreen *vs, int x, int y, const int wi
else
smap_ptr = _vm->findResource(MKID('SMAP'), ptr);
+ // newer Humongous titles use this
+ if (smap_ptr == NULL)
+ smap_ptr = _vm->findResource(MKID('BMAP'), ptr);
+
assert(smap_ptr);
zplane_list[0] = smap_ptr;