diff options
Diffstat (limited to 'engines/scumm')
-rw-r--r-- | engines/scumm/akos.cpp | 2 | ||||
-rw-r--r-- | engines/scumm/script_v5.cpp | 6 | ||||
-rw-r--r-- | engines/scumm/string.cpp | 6 |
3 files changed, 9 insertions, 5 deletions
diff --git a/engines/scumm/akos.cpp b/engines/scumm/akos.cpp index 1777caa84c..39de31b5c9 100644 --- a/engines/scumm/akos.cpp +++ b/engines/scumm/akos.cpp @@ -1730,7 +1730,7 @@ bool ScummEngine_v6::akos_increaseAnim(Actor *a, int chan, const byte *aksq, con if (code2 & 0x80) code2 = READ_BE_UINT16(aksq + curpos); - 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) + 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; diff --git a/engines/scumm/script_v5.cpp b/engines/scumm/script_v5.cpp index ce5ac4f323..a50dde5271 100644 --- a/engines/scumm/script_v5.cpp +++ b/engines/scumm/script_v5.cpp @@ -2064,7 +2064,8 @@ void ScummEngine_v5::o5_roomOps() { a = getVarOrDirectByte(PARAM_1); s = filename; - while ((*s++ = fetchScriptByte())); + while ((*s++ = fetchScriptByte())) + ; file = _saveFileMan->openForSaving(filename); if (file != NULL) { @@ -2083,7 +2084,8 @@ void ScummEngine_v5::o5_roomOps() { a = getVarOrDirectByte(PARAM_1); s = filename; - while ((*s++ = fetchScriptByte())); + while ((*s++ = fetchScriptByte())) + ; file = _saveFileMan->openForLoading(filename); if (file != NULL) { diff --git a/engines/scumm/string.cpp b/engines/scumm/string.cpp index 00521048a1..3b3611ab50 100644 --- a/engines/scumm/string.cpp +++ b/engines/scumm/string.cpp @@ -1126,11 +1126,13 @@ int ScummEngine_v72he::convertMessageToString(const byte *msg, byte *dst, int ds // (pickup4) // (PU1) // (PU2) - while (src[num++] != ')'); + while (src[num++] != ')') + ; continue; } if ((_game.features & GF_HE_LOCALIZED) && chr == '[') { - while (src[num++] != ']'); + while (src[num++] != ']') + ; continue; } |