From 3fb50b815e78b9284497deb6ead60a6efff02453 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Thu, 11 Aug 2011 16:58:04 +0100 Subject: AGI: Further work on v1 opcode difference --- engines/agi/op_test.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'engines/agi/op_test.cpp') diff --git a/engines/agi/op_test.cpp b/engines/agi/op_test.cpp index f8fd7674f1..bc711652f9 100644 --- a/engines/agi/op_test.cpp +++ b/engines/agi/op_test.cpp @@ -38,6 +38,7 @@ namespace Agi { #define testGreater(v1, v2) (getvar(v1) > (v2)) #define testIsSet(flag) (getflag(flag)) #define testHas(obj) (state->_vm->objectGetLocation(obj) == EGO_OWNED) +#define testHasV1(obj) (state->_vm->objectGetLocation(obj) == EGO_OWNED_V1) #define testObjInRoom(obj, v) (state->_vm->objectGetLocation(obj) == getvar(v)) void condEqual(AgiGame *state, uint8 *p) { @@ -92,6 +93,10 @@ void condHas(AgiGame *state, uint8 *p) { state->testResult = testHas(p[0]); } +void condHasV1(AgiGame *state, uint8 *p) { + state->testResult = testHasV1(p[0]); +} + void condObjInRoom(AgiGame *state, uint8 *p) { state->testResult = testObjInRoom(p[0], p[1]); } -- cgit v1.2.3