diff options
author | Vladimir Menshakov | 2009-11-17 21:00:28 +0000 |
---|---|---|
committer | Vladimir Menshakov | 2009-11-17 21:00:28 +0000 |
commit | f2a704cb4f3e719cd4b08fc803fc5fe4a99a2fd7 (patch) | |
tree | d5f0e27d7ecc0e87d26876487d97d60542fb1cc6 /engines/teenagent | |
parent | a9dc8215bb90f7e6944b729fcf4751fa72bf0120 (diff) | |
download | scummvm-rg350-f2a704cb4f3e719cd4b08fc803fc5fe4a99a2fd7.tar.gz scummvm-rg350-f2a704cb4f3e719cd4b08fc803fc5fe4a99a2fd7.tar.bz2 scummvm-rg350-f2a704cb4f3e719cd4b08fc803fc5fe4a99a2fd7.zip |
corrected scene 7 hack
svn-id: r45959
Diffstat (limited to 'engines/teenagent')
-rw-r--r-- | engines/teenagent/surface.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/engines/teenagent/surface.cpp b/engines/teenagent/surface.cpp index 37bf8fb344..19c642896b 100644 --- a/engines/teenagent/surface.cpp +++ b/engines/teenagent/surface.cpp @@ -45,12 +45,13 @@ void Surface::load(Common::SeekableReadStream *stream, Type type, int sub_hack) if (stream->eos()) return; - for (byte i = 0; i < fn; ++i) { + byte i; + for (i = 0; i < fn - sub_hack; ++i) { flags[i] = stream->readUint16LE(); - if (i == 0) - flags[i] -= sub_hack; debug(0, "flags[%u] = %u (0x%04x)", i, flags[i], flags[i]); } + for(; i < fn; ++i) + debug(0, "*hack* skipping flag %04x", stream->readUint16LE()); } uint16 w_ = stream->readUint16LE(); |