aboutsummaryrefslogtreecommitdiff
path: root/engines/director/lingo
diff options
context:
space:
mode:
authorEugene Sandulenko2019-12-18 14:35:12 +0100
committerEugene Sandulenko2019-12-18 22:47:31 +0100
commitce9b358034c9fc0c2ebcfaaf1ccc21b7af8d87a1 (patch)
tree49288397784c0724b1cf82d62d794be462e3427a /engines/director/lingo
parent034f629f0edaeec527f7d03c01dce6bc6d81e2bc (diff)
downloadscummvm-rg350-ce9b358034c9fc0c2ebcfaaf1ccc21b7af8d87a1.tar.gz
scummvm-rg350-ce9b358034c9fc0c2ebcfaaf1ccc21b7af8d87a1.tar.bz2
scummvm-rg350-ce9b358034c9fc0c2ebcfaaf1ccc21b7af8d87a1.zip
DIRECTOR: LINGO: Process specific event in sprite script for D3
Diffstat (limited to 'engines/director/lingo')
-rw-r--r--engines/director/lingo/lingo-events.cpp6
1 files changed, 4 insertions, 2 deletions
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?