diff options
author | Vladimir Menshakov | 2009-11-17 20:47:03 +0000 |
---|---|---|
committer | Vladimir Menshakov | 2009-11-17 20:47:03 +0000 |
commit | a9dc8215bb90f7e6944b729fcf4751fa72bf0120 (patch) | |
tree | 46c4c0398c82c502c3101cabd596db85c2607317 /engines/teenagent/scene.cpp | |
parent | 99111a75c1b8a7df05a05cad53867c43918a1217 (diff) | |
download | scummvm-rg350-a9dc8215bb90f7e6944b729fcf4751fa72bf0120.tar.gz scummvm-rg350-a9dc8215bb90f7e6944b729fcf4751fa72bf0120.tar.bz2 scummvm-rg350-a9dc8215bb90f7e6944b729fcf4751fa72bf0120.zip |
found strange hack about room 7 and overlay.
svn-id: r45957
Diffstat (limited to 'engines/teenagent/scene.cpp')
-rw-r--r-- | engines/teenagent/scene.cpp | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/engines/teenagent/scene.cpp b/engines/teenagent/scene.cpp index 31f5b57605..3a76ea9da8 100644 --- a/engines/teenagent/scene.cpp +++ b/engines/teenagent/scene.cpp @@ -430,7 +430,19 @@ void Scene::init(int id, const Common::Point &pos) { setPalette(_system, palette, 4); Common::SeekableReadStream *stream = res->on.getStream(id); - on.load(stream, Surface::kTypeOn); + int sub_hack = 0; + if (id == 7) { //something patched in the captains room + switch(res->dseg.get_byte(0xdbe6)) { + case 2: + break; + case 1: + sub_hack = 1; + break; + default: + sub_hack = 2; + } + } + on.load(stream, Surface::kTypeOn, sub_hack); delete stream; loadOns(); |