aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorMartin Kiewitz2016-01-31 13:50:37 +0100
committerMartin Kiewitz2016-01-31 13:50:37 +0100
commit8115145e4bbb1d0e7ba961a0376bb1f538a4f132 (patch)
treefc002105f016440f8e27cdfec3373bd3dd4a7335 /engines
parent6baadff8d371584caaf6c83238847c54ec4b8261 (diff)
downloadscummvm-rg350-8115145e4bbb1d0e7ba961a0376bb1f538a4f132.tar.gz
scummvm-rg350-8115145e4bbb1d0e7ba961a0376bb1f538a4f132.tar.bz2
scummvm-rg350-8115145e4bbb1d0e7ba961a0376bb1f538a4f132.zip
AGI: hardcoded value replaced with VM_VAR_SECONDS
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]));
}