aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
Diffstat (limited to 'engines')
-rw-r--r--engines/agi/op_test.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/engines/agi/op_test.cpp b/engines/agi/op_test.cpp
index afb1ddb820..701bbcd59c 100644
--- a/engines/agi/op_test.cpp
+++ b/engines/agi/op_test.cpp
@@ -42,37 +42,37 @@ namespace Agi {
#define testObjInRoom(obj, v) (state->_vm->objectGetLocation(obj) == getVar(v))
void condEqual(AgiGame *state, uint8 *p) {
- if (p[0] == 11)
+ if (p[0] == VM_VAR_SECONDS)
state->_vm->_timerHack++;
state->testResult = testEqual(p[0], p[1]);
}
void condEqualV(AgiGame *state, uint8 *p) {
- if (p[0] == 11 || p[1] == 11)
+ if (p[0] == VM_VAR_SECONDS || p[1] == VM_VAR_SECONDS)
state->_vm->_timerHack++;
state->testResult = testEqual(p[0], getVar(p[1]));
}
void condLess(AgiGame *state, uint8 *p) {
- if (p[0] == 11)
+ if (p[0] == VM_VAR_SECONDS)
state->_vm->_timerHack++;
state->testResult = testLess(p[0], p[1]);
}
void condLessV(AgiGame *state, uint8 *p) {
- if (p[0] == 11 || p[1] == 11)
+ if (p[0] == VM_VAR_SECONDS || p[1] == VM_VAR_SECONDS)
state->_vm->_timerHack++;
state->testResult = testLess(p[0], getVar(p[1]));
}
void condGreater(AgiGame *state, uint8 *p) {
- if (p[0] == 11)
+ if (p[0] == VM_VAR_SECONDS)
state->_vm->_timerHack++;
state->testResult = testGreater(p[0], p[1]);
}
void condGreaterV(AgiGame *state, uint8 *p) {
- if (p[0] == 11 || p[1] == 11)
+ if (p[0] == VM_VAR_SECONDS || p[1] == VM_VAR_SECONDS)
state->_vm->_timerHack++;
state->testResult = testGreater(p[0], getVar(p[1]));
}