From 8a6dce9fd334230ec80b2c444cbddfad2cb429d6 Mon Sep 17 00:00:00 2001 From: Tobia Tesan Date: Wed, 21 Jun 2017 10:58:13 +0200 Subject: DIRECTOR: Handle kEventIdle with 1-ary processEvent --- engines/director/events.cpp | 2 +- engines/director/lingo/lingo-events.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'engines/director') diff --git a/engines/director/events.cpp b/engines/director/events.cpp index b59202c1f6..603582bfc8 100644 --- a/engines/director/events.cpp +++ b/engines/director/events.cpp @@ -122,7 +122,7 @@ void DirectorEngine::processEvents() { g_system->delayMillis(10); if (sc->getCurrentFrame() > 0) - _lingo->processEvent(kEventIdle, kFrameScript, sc->getCurrentFrame()); + _lingo->processEvent(kEventIdle); } } diff --git a/engines/director/lingo/lingo-events.cpp b/engines/director/lingo/lingo-events.cpp index 65c02490f5..7aabcff28f 100644 --- a/engines/director/lingo/lingo-events.cpp +++ b/engines/director/lingo/lingo-events.cpp @@ -217,7 +217,7 @@ void Lingo::processFrameEvent(LEvent event) { } else { int entity; - if (event == kEventPrepareFrame) { + if (event == kEventPrepareFrame || event == kEventIdle) { entity = score->getCurrentFrame(); } else { assert(score->_frames[score->getCurrentFrame()] != nullptr); @@ -264,6 +264,7 @@ void Lingo::processEvent(LEvent event) { processInputEvent(event); break; + case kEventIdle: case kEventEnterFrame: case kEventExitFrame: processFrameEvent(event); @@ -272,7 +273,6 @@ void Lingo::processEvent(LEvent event) { case kEventStart: case kEventStartMovie: case kEventStopMovie: - case kEventIdle: case kEventTimeout: processGenericEvent(event); break; -- cgit v1.2.3