[Scummvm-git-logs] scummvm master -> c8cf06b2a359f09b2f1091ae7414d4f95a230bf5

djsrv dservilla at gmail.com
Fri Jun 26 17:53:05 UTC 2020


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
c8cf06b2a3 DIRECTOR: LINGO: Fix the clickOn


Commit: c8cf06b2a359f09b2f1091ae7414d4f95a230bf5
    https://github.com/scummvm/scummvm/commit/c8cf06b2a359f09b2f1091ae7414d4f95a230bf5
Author: djsrv (dservilla at gmail.com)
Date: 2020-06-26T13:52:11-04:00

Commit Message:
DIRECTOR: LINGO: Fix the clickOn

It should reset to 0 when a non-sprite is clicked.

Changed paths:
    engines/director/events.cpp


diff --git a/engines/director/events.cpp b/engines/director/events.cpp
index 9d3e84f1c1..b4783f1782 100644
--- a/engines/director/events.cpp
+++ b/engines/director/events.cpp
@@ -101,8 +101,7 @@ void DirectorEngine::processEvents(bool bufferLingoEvents) {
 				// But we still want to know if the mouse is down for press effects.
 				spriteId = sc->getSpriteIDFromPos(pos, true);
 				sc->_currentMouseDownSpriteId = spriteId;
-				if (sc->getSpriteById(spriteId)->_scriptId)
-					sc->_currentClickOnSpriteId = spriteId;
+				sc->_currentClickOnSpriteId = spriteId;
 
 				sc->_lastEventTime = g_director->getMacTicks();
 				sc->_lastClickTime = sc->_lastEventTime;




More information about the Scummvm-git-logs mailing list