diff options
author | Sven Hesse | 2007-03-29 17:55:39 +0000 |
---|---|---|
committer | Sven Hesse | 2007-03-29 17:55:39 +0000 |
commit | 623ca8802269914ab90a1127f89c66dd2cb571f1 (patch) | |
tree | 184d67b016a4a3808d7b8a19946c071db39105ac /engines/gob/inter_v1.cpp | |
parent | 69639ea0bf28e3ca7526617304859d359b58063b (diff) | |
download | scummvm-rg350-623ca8802269914ab90a1127f89c66dd2cb571f1.tar.gz scummvm-rg350-623ca8802269914ab90a1127f89c66dd2cb571f1.tar.bz2 scummvm-rg350-623ca8802269914ab90a1127f89c66dd2cb571f1.zip |
- Properly implemented the ImdPlayer
- Some more clean-up
svn-id: r26316
Diffstat (limited to 'engines/gob/inter_v1.cpp')
-rw-r--r-- | engines/gob/inter_v1.cpp | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/engines/gob/inter_v1.cpp b/engines/gob/inter_v1.cpp index f6081a8fb2..d5bc59fe19 100644 --- a/engines/gob/inter_v1.cpp +++ b/engines/gob/inter_v1.cpp @@ -2215,7 +2215,6 @@ bool Inter_v1::o1_readData(OpFuncParams ¶ms) { int16 dataVar; int16 offset; int16 handle; - char buf[4]; evalExpr(0); dataVar = _vm->_parse->parseVarIndex(); @@ -2230,14 +2229,13 @@ bool Inter_v1::o1_readData(OpFuncParams ¶ms) { if (handle >= 0) { _vm->_draw->animateCursor(4); if (offset < 0) - _vm->_dataIO->seekData(handle, -offset - 1, 2); + _vm->_dataIO->seekData(handle, -offset - 1, SEEK_END); else - _vm->_dataIO->seekData(handle, offset, 0); + _vm->_dataIO->seekData(handle, offset, SEEK_SET); - if (((dataVar >> 2) == 59) && (size == 4)) { - retSize = _vm->_dataIO->readData(handle, buf, 4); - WRITE_VAR(59, READ_LE_UINT32(buf)); - } else + if (((dataVar >> 2) == 59) && (size == 4)) + WRITE_VAR(59, _vm->_dataIO->readUint32(handle)); + else retSize = _vm->_dataIO->readData(handle, _vm->_global->_inter_variables + dataVar, size); @@ -3009,7 +3007,7 @@ void Inter_v1::animPalette() { if (_animPalDir[0] == 0) return; - _vm->_video->waitRetrace(_vm->_global->_videoMode); + _vm->_video->waitRetrace(); if (_animPalDir[0] == -1) { col = _vm->_draw->_vgaSmallPalette[_animPalLowIndex[0]]; |