diff options
author | Max Horn | 2002-12-27 14:04:25 +0000 |
---|---|---|
committer | Max Horn | 2002-12-27 14:04:25 +0000 |
commit | 81c421ec0cd4324aefa181c4b2719f2bd775a0e1 (patch) | |
tree | 60e4f76f2a2e0543438f0b95624fd35ac33ab65e /scumm | |
parent | b487206a220acbae00e88186418b5f2a5bec1b47 (diff) | |
download | scummvm-rg350-81c421ec0cd4324aefa181c4b2719f2bd775a0e1.tar.gz scummvm-rg350-81c421ec0cd4324aefa181c4b2719f2bd775a0e1.tar.bz2 scummvm-rg350-81c421ec0cd4324aefa181c4b2719f2bd775a0e1.zip |
cleanup
svn-id: r6197
Diffstat (limited to 'scumm')
-rw-r--r-- | scumm/akos.cpp | 21 | ||||
-rw-r--r-- | scumm/akos.h | 6 | ||||
-rw-r--r-- | scumm/gfx.cpp | 6 | ||||
-rw-r--r-- | scumm/script.cpp | 2 |
4 files changed, 17 insertions, 18 deletions
diff --git a/scumm/akos.cpp b/scumm/akos.cpp index 9d17f3630a..47d303a0c8 100644 --- a/scumm/akos.cpp +++ b/scumm/akos.cpp @@ -595,11 +595,11 @@ void AkosRenderer::codec1() /* implement custom scale table */ + v1.scaletable = default_scale_table; + // FIXME - which value for VAR_CUSTOMSCALETABLE in V8 ? if (_vm->isGlobInMemory(rtString, _vm->_vars[_vm->VAR_CUSTOMSCALETABLE])) { v1.scaletable = _vm->getStringAddressVar(_vm->VAR_CUSTOMSCALETABLE); - } else { - v1.scaletable = default_scale_table; } /* Setup color decoding variables */ @@ -1239,10 +1239,10 @@ void AkosRenderer::codec16() { if (!mirror) { dir = -1; - int tmp_skip_x = skip_x; - skip_x = _width-1-cur_x; - cur_x = _width-1-tmp_skip_x; - width_unk = clip_right; + int tmp_skip_x = skip_x; + skip_x = _width - 1 - cur_x; + cur_x = _width - 1 - tmp_skip_x; + width_unk = clip_right; /* tmp1 = width - 1; tmp2 = cur_x; @@ -1252,7 +1252,8 @@ void AkosRenderer::codec16() { tmp1 -= cur_x; width_unk = clip_right; skip_x = tmp3; - cur_x = tmp1;*/ + cur_x = tmp1; +*/ } else { dir = 1; width_unk = clip_left; @@ -1415,8 +1416,7 @@ bool Scumm::akos_increaseAnim(Actor *a, int chan, byte *aksq, uint16 *akfo, int switch (code) { case AKC_StartAnimInActor: - akos_queCommand(4, derefActorSafe(a->getAnimVar(GB(2)), - "akos_increaseAnim:29"), a->getAnimVar(GB(3)), 0); + akos_queCommand(4, derefActorSafe(a->getAnimVar(GB(2)), "akos_increaseAnim:29"), a->getAnimVar(GB(3)), 0); continue; case AKC_Random: @@ -1460,8 +1460,7 @@ bool Scumm::akos_increaseAnim(Actor *a, int chan, byte *aksq, uint16 *akfo, int akos_queCommand(4, a, a->getAnimVar(GB(2)), 0); continue; case AKC_SetVarInActor: - derefActorSafe(a->getAnimVar(GB(2)), "akos_increaseAnim:9")->setAnimVar(GB(3), GW(4) - ); + derefActorSafe(a->getAnimVar(GB(2)), "akos_increaseAnim:9")->setAnimVar(GB(3), GW(4)); continue; case AKC_HideActor: akos_queCommand(1, a, 0, 0); diff --git a/scumm/akos.h b/scumm/akos.h index 7c8fa45d6b..b3ce917299 100644 --- a/scumm/akos.h +++ b/scumm/akos.h @@ -29,11 +29,11 @@ struct CostumeData; struct AkosHeader { - byte x_1[2]; + byte unk_1[2]; byte flags; - byte x_2; + byte unk_2; uint16 num_anims; - uint16 x_3; + uint16 unk_3; uint16 codec; } GCC_PACK; diff --git a/scumm/gfx.cpp b/scumm/gfx.cpp index 68033ebb62..908cd3ea65 100644 --- a/scumm/gfx.cpp +++ b/scumm/gfx.cpp @@ -2680,9 +2680,9 @@ void Scumm::setupShadowPalette(int slot, int redScale, int greenScale, int blueS curpal = _currentPalette + startColor * 3; for (i = startColor; i <= endColor; i++) { *table++ = remapPaletteColor((curpal[0] * redScale) >> 8, - curpal[1] * greenScale >> 8, - curpal[2] * blueScale >> 8, - (uint) - 1); + (curpal[1] * greenScale) >> 8, + (curpal[2] * blueScale) >> 8, + (uint) - 1); curpal += 3; } } diff --git a/scumm/script.cpp b/scumm/script.cpp index d2ad8e2cec..b694ef02b8 100644 --- a/scumm/script.cpp +++ b/scumm/script.cpp @@ -488,7 +488,7 @@ void Scumm::push(int a) int Scumm::pop() { if ((_scummStackPos < 1) || ((unsigned int)_scummStackPos > ARRAYSIZE(_scummStack))) { - error("No items on stack to pop() for %s (0x%X) at [%d-%d]\n", getOpcodeDesc(_opcode), _opcode, _roomResource, vm.slot[_currentScript].number); + error("No items on stack to pop() for %s (0x%X) at [%d-%d]", getOpcodeDesc(_opcode), _opcode, _roomResource, vm.slot[_currentScript].number); } return _scummStack[--_scummStackPos]; |