diff options
Diffstat (limited to 'scumm')
-rw-r--r-- | scumm/script_v2.cpp | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/scumm/script_v2.cpp b/scumm/script_v2.cpp index 0def310502..a216533c4e 100644 --- a/scumm/script_v2.cpp +++ b/scumm/script_v2.cpp @@ -1041,6 +1041,17 @@ void Scumm_v2::o2_delayVariable() { o5_breakHere(); } +void Scumm_v2::o2_delay() { + int delay = fetchScriptByte(); + delay |= fetchScriptByte() << 8; + delay |= fetchScriptByte() << 16; + delay = 0xFFFFFF - delay; + + vm.slot[_currentScript].delay = delay; + vm.slot[_currentScript].status = 1; + o5_breakHere(); +} + void Scumm_v2::o2_matrixOps() { int a, b; @@ -1174,18 +1185,6 @@ void Scumm_v2::o2_drawSentence() { warning("TODO o2_drawSentence()"); } -void Scumm_v2::o2_delay() { - int delay = fetchScriptByte(); - delay |= fetchScriptByte() << 8; - delay |= fetchScriptByte() << 16; - - vm.slot[_currentScript].delay = 1; // FIXME: Fix conversion - vm.slot[_currentScript].status = 1; - o5_breakHere(); - - warning("TODO: o2_delay(%d)", delay); -} - void Scumm_v2::o2_dummy() { warning("o2_dummy invoked (opcode %d)", _opcode); } |