diff options
Diffstat (limited to 'engines')
-rw-r--r-- | engines/scumm/intern.h | 2 | ||||
-rw-r--r-- | engines/scumm/script_c64.cpp | 9 |
2 files changed, 6 insertions, 5 deletions
diff --git a/engines/scumm/intern.h b/engines/scumm/intern.h index 1af4f8c777..8a93abbcb8 100644 --- a/engines/scumm/intern.h +++ b/engines/scumm/intern.h @@ -458,7 +458,7 @@ protected: void o_setBitVar(); void o_doSentence(); void o_unknown2(); - void o_ifActiveOBject(); + void o_ifActiveObject(); void o_getClosestObjActor(); void o_printEgo_c64(); void o_print_c64(); diff --git a/engines/scumm/script_c64.cpp b/engines/scumm/script_c64.cpp index 29dd4a4919..b7adc50bf2 100644 --- a/engines/scumm/script_c64.cpp +++ b/engines/scumm/script_c64.cpp @@ -162,7 +162,7 @@ void ScummEngine_c64::setupOpcodes() { OPCODE(o2_stopScript), OPCODE(o_stopCurrentScript), /* 64 */ - OPCODE(o_ifActiveOBject), + OPCODE(o_ifActiveObject), OPCODE(o_stopCurrentScript), OPCODE(o_getClosestObjActor), OPCODE(o5_getActorFacing), @@ -322,7 +322,7 @@ void ScummEngine_c64::setupOpcodes() { OPCODE(o2_stopScript), OPCODE(o_stopCurrentScript), /* E4 */ - OPCODE(o_ifActiveOBject), + OPCODE(o_ifActiveObject), OPCODE(o_loadRoomWithEgo), OPCODE(o_stopCurrentScript), OPCODE(o5_getActorFacing), @@ -689,6 +689,7 @@ void ScummEngine_c64::o_badOpcode() { void ScummEngine_c64::o_nop() { } +// TODO: Maybe translate actor flags in future. void ScummEngine_c64::o_setActorBitVar() { byte act = getVarOrDirectByte(PARAM_1); byte mask = getVarOrDirectByte(PARAM_2); @@ -708,7 +709,7 @@ void ScummEngine_c64::o_getActorBitVar() { byte act = getVarOrDirectByte(PARAM_1); byte mask = getVarOrDirectByte(PARAM_2); - Actor *a = derefActor(act, "o_setActorBitVar"); + Actor *a = derefActor(act, "o_getActorBitVar"); setResult((a->_miscflags & mask) ? 1 : 0); debug(0, "o_getActorBitVar(%d, %d, %d)", act, mask, (a->_miscflags & mask)); @@ -759,7 +760,7 @@ void ScummEngine_c64::o_unknown2() { warning("STUB: o_unknown2(%d)", var1); } -void ScummEngine_c64::o_ifActiveOBject() { +void ScummEngine_c64::o_ifActiveObject() { byte obj = fetchScriptByte(); if (obj == _activeObject) |