AGI: Further work on v1 opcode difference
This commit is contained in:
parent
af691e46c4
commit
3fb50b815e
5 changed files with 100 additions and 33 deletions
|
@ -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]);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue