From ce9b358034c9fc0c2ebcfaaf1ccc21b7af8d87a1 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Wed, 18 Dec 2019 14:35:12 +0100 Subject: DIRECTOR: LINGO: Process specific event in sprite script for D3 --- engines/director/lingo/lingo-events.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'engines/director/lingo') diff --git a/engines/director/lingo/lingo-events.cpp b/engines/director/lingo/lingo-events.cpp index 32b8b8d1e6..9a270cc824 100644 --- a/engines/director/lingo/lingo-events.cpp +++ b/engines/director/lingo/lingo-events.cpp @@ -170,10 +170,12 @@ void Lingo::processInputEvent(LEvent event) { // TODO: Is the kFrameScript call above correct? } else if (event == kEventMouseUp) { // Frame script overrides sprite script - if (!currentFrame->_sprites[spriteId]->_scriptId) + if (!currentFrame->_sprites[spriteId]->_scriptId) { g_lingo->processEvent(kEventNone, kSpriteScript, currentFrame->_sprites[spriteId]->_castId + 1024); - else + g_lingo->processEvent(event, kSpriteScript, currentFrame->_sprites[spriteId]->_castId + 1024); + } else { g_lingo->processEvent(kEventNone, kFrameScript, currentFrame->_sprites[spriteId]->_scriptId); + } } if (event == kEventKeyDown) { // TODO: is the above condition necessary or useful? -- cgit v1.2.3