mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-24 11:36:22 +00:00
Switch assert to an error message, stating the exact unknown code.
svn-id: r35796
This commit is contained in:
parent
1e29a3c7d8
commit
5bf899709c
@ -1730,7 +1730,8 @@ bool ScummEngine_v6::akos_increaseAnim(Actor *a, int chan, const byte *aksq, con
|
||||
if (code2 & 0x80)
|
||||
code2 = READ_BE_UINT16(aksq + curpos);
|
||||
|
||||
assert((code2 & 0xC000) != 0xC000 || code2 == AKC_ComplexChan || code2 == AKC_Return || code2 == AKC_EndSeq || code2 == AKC_C08E || code2 == AKC_ComplexChan2 || code2 == AKC_C021 || code2 == AKC_C022);
|
||||
if((code2 & 0xC000) == 0xC000 && code2 != AKC_ComplexChan && code2 != AKC_Return && code2 != AKC_EndSeq && code2 != AKC_C08E && code2 != AKC_ComplexChan2 && code2 != AKC_C021 && code2 != AKC_C022)
|
||||
error("Ending with undefined uSweat token %X", code2);
|
||||
|
||||
a->_cost.curpos[chan] = curpos;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user