aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorTobia Tesan2017-06-20 23:36:07 +0200
committerEugene Sandulenko2017-07-05 08:35:33 +0200
commitbfe3a316c44be89660ed999197af79b87be0f582 (patch)
treea8abc6e0e7bf31fa795bf7a342afd5286a377579 /engines
parent57dbfbf98806ac332926c0f3b133a6970ea7d442 (diff)
downloadscummvm-rg350-bfe3a316c44be89660ed999197af79b87be0f582.tar.gz
scummvm-rg350-bfe3a316c44be89660ed999197af79b87be0f582.tar.bz2
scummvm-rg350-bfe3a316c44be89660ed999197af79b87be0f582.zip
DIRECTOR: Swap order of processEvent calls
This appears to be the correct order from docs and makes code easier to reorder. *Might* break stuff though.
Diffstat (limited to 'engines')
-rw-r--r--engines/director/lingo/lingo-events.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/director/lingo/lingo-events.cpp b/engines/director/lingo/lingo-events.cpp
index b9d901e64a..71cdc38802 100644
--- a/engines/director/lingo/lingo-events.cpp
+++ b/engines/director/lingo/lingo-events.cpp
@@ -164,8 +164,8 @@ void Lingo::processInputEvent(LEvent event) {
} else if (event == kEventMouseUp) {
if (_vm->getVersion() > 3) {
// TODO: check that this is the order of script execution!
- g_lingo->processEvent(kEventMouseUp, kCastScript, currentFrame->_sprites[spriteId]->_castId);
g_lingo->processEvent(kEventMouseUp, kSpriteScript, currentFrame->_sprites[spriteId]->_scriptId);
+ g_lingo->processEvent(kEventMouseUp, kCastScript, currentFrame->_sprites[spriteId]->_castId);
} else {
// Frame script overrides sprite script
if (!currentFrame->_sprites[spriteId]->_scriptId)