aboutsummaryrefslogtreecommitdiff
path: root/scumm
diff options
context:
space:
mode:
Diffstat (limited to 'scumm')
-rw-r--r--scumm/akos.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/scumm/akos.cpp b/scumm/akos.cpp
index 31054c01e1..dd7ef28a97 100644
--- a/scumm/akos.cpp
+++ b/scumm/akos.cpp
@@ -1348,21 +1348,15 @@ bool ScummEngine::akos_increaseAnim(Actor *a, int chan, const byte *aksq, const
}
void ScummEngine::akos_queCommand(byte cmd, Actor *a, int param_1, int param_2) {
- if (_queuePos > 32)
- error("overflow");
+ checkRange(32, 0, _queuePos, "akos_queCommand overflow");
;
_queuePos++;
_queueCmd[_queuePos] = cmd;
_queueActor[_queuePos] = a->number;
_queueParam1[_queuePos] = param_1;
_queueParam2[_queuePos] = param_2;
-
-
- warning("_queuePos %d", _queuePos);
}
-
-
void ScummEngine::akos_processQueue() {
byte cmd;
int actor, param_1, param_2;