diff options
author | Tobia Tesan | 2017-06-20 23:36:07 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2017-07-05 08:35:33 +0200 |
commit | bfe3a316c44be89660ed999197af79b87be0f582 (patch) | |
tree | a8abc6e0e7bf31fa795bf7a342afd5286a377579 | |
parent | 57dbfbf98806ac332926c0f3b133a6970ea7d442 (diff) | |
download | scummvm-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.
-rw-r--r-- | engines/director/lingo/lingo-events.cpp | 2 |
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) |