diff options
author | James Brown | 2003-01-12 18:35:01 +0000 |
---|---|---|
committer | James Brown | 2003-01-12 18:35:01 +0000 |
commit | a5e144fb8a847579c67fb500204c80dab2b7aa16 (patch) | |
tree | 1cf7f7763255e174ef645e72570551045be3756a /scumm/akos.cpp | |
parent | 2054937003a50a5d8a116739d5f0a0bccbfc56f0 (diff) | |
download | scummvm-rg350-a5e144fb8a847579c67fb500204c80dab2b7aa16.tar.gz scummvm-rg350-a5e144fb8a847579c67fb500204c80dab2b7aa16.tar.bz2 scummvm-rg350-a5e144fb8a847579c67fb500204c80dab2b7aa16.zip |
Add uSweat token (used when trying to walk across hot sand at brimstone beach)
svn-id: r6432
Diffstat (limited to 'scumm/akos.cpp')
-rw-r--r-- | scumm/akos.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/scumm/akos.cpp b/scumm/akos.cpp index 3046589b44..c1734bee29 100644 --- a/scumm/akos.cpp +++ b/scumm/akos.cpp @@ -95,7 +95,8 @@ enum AkosOpcodes { AKC_JumpLE = 0xC093, AKC_JumpG = 0xC094, AKC_JumpGE = 0xC095, - AKC_ClearFlag = 0xC09F + AKC_ClearFlag = 0xC09F, + AKC_EndSeq = 0xC0FF }; bool Scumm::akos_hasManyDirections(Actor *a) @@ -257,7 +258,7 @@ byte AkosRenderer::drawLimb(const CostumeData &cost, int limb) if (code & 0x80) code = (code << 8) | p[1]; - if (code == AKC_Return) + if (code == AKC_Return || code == AKC_EndSeq) return false; if (code != AKC_ComplexChan) { @@ -1424,6 +1425,7 @@ bool Scumm::akos_increaseAnim(Actor *a, int chan, byte *aksq, uint16 *akfo, int case AKC_HideActor: case AKC_CmdQue3Quick: case AKC_Return: + case AKC_EndSeq: curpos += 2; break; case AKC_JumpGE: @@ -1561,6 +1563,7 @@ bool Scumm::akos_increaseAnim(Actor *a, int chan, byte *aksq, uint16 *akfo, int break; case AKC_Return: + case AKC_EndSeq: case AKC_ComplexChan: break; @@ -1590,7 +1593,7 @@ bool Scumm::akos_increaseAnim(Actor *a, int chan, byte *aksq, uint16 *akfo, int int code2 = aksq[curpos]; if (code2 & 0x80) code2 = (code2 << 8) | aksq[curpos + 1]; - assert((code2 & 0xC000) != 0xC000 || code2 == AKC_ComplexChan || code2 == AKC_Return); + assert((code2 & 0xC000) != 0xC000 || code2 == AKC_ComplexChan || code2 == AKC_Return || code2 == AKC_EndSeq); a->cost.curpos[chan] = curpos; |