diff options
author | Max Horn | 2008-09-13 22:41:30 +0000 |
---|---|---|
committer | Max Horn | 2008-09-13 22:41:30 +0000 |
commit | f8ccd2dedeeb8fa240cb91afc383441612ddd542 (patch) | |
tree | 56b45354bcd8f1e0981fc9d126c2a0230008d410 /engines/scumm/insane/insane.cpp | |
parent | 15d16b94a722533375b5dba1105d7d2be7db62bb (diff) | |
download | scummvm-rg350-f8ccd2dedeeb8fa240cb91afc383441612ddd542.tar.gz scummvm-rg350-f8ccd2dedeeb8fa240cb91afc383441612ddd542.tar.bz2 scummvm-rg350-f8ccd2dedeeb8fa240cb91afc383441612ddd542.zip |
SCUMM: Got rid of class Chunk
svn-id: r34518
Diffstat (limited to 'engines/scumm/insane/insane.cpp')
-rw-r--r-- | engines/scumm/insane/insane.cpp | 25 |
1 files changed, 8 insertions, 17 deletions
diff --git a/engines/scumm/insane/insane.cpp b/engines/scumm/insane/insane.cpp index 1771618822..77a01d54d0 100644 --- a/engines/scumm/insane/insane.cpp +++ b/engines/scumm/insane/insane.cpp @@ -39,7 +39,6 @@ #include "scumm/smush/smush_player.h" #include "scumm/smush/smush_font.h" -#include "scumm/smush/chunk.h" #include "scumm/insane/insane.h" @@ -1310,33 +1309,25 @@ void Insane::smlayer_showStatusMsg(int32 arg_0, byte *renderBitmap, int32 codecp free (string); } -void Insane::procSKIP(Chunk &b) { +void Insane::procSKIP(int32 subSize, Common::SeekableReadStream &b) { int16 par1, par2; _player->_skipNext = false; if ((_vm->_game.features & GF_DEMO) && (_vm->_game.platform == Common::kPlatformPC)) { - _player->checkBlock(b, MKID_BE('SKIP'), 2); + assert(subSize >= 2); par1 = b.readUint16LE(); - if (isBitSet(par1)) - _player->_skipNext = true; - return; + par2 = 0; + } else { + assert(subSize >= 4); + par1 = b.readUint16LE(); + par2 = b.readUint16LE(); } - _player->checkBlock(b, MKID_BE('SKIP'), 4); - - par1 = b.readUint16LE(); - par2 = b.readUint16LE(); - - if (!par2) { if (isBitSet(par1)) _player->_skipNext = true; - return; - } - - if (isBitSet(par1) != isBitSet(par2)) { + } else if (isBitSet(par1) != isBitSet(par2)) { _player->_skipNext = true; - return; } } |