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

sev- sev at scummvm.org
Sun Feb 12 08:48:40 CET 2017


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:
d1a08b5145 DIRECTOR: Lingo: Fix D3 script execution


Commit: d1a08b5145ea822c106e34043bf9b0a0be16c90d
    https://github.com/scummvm/scummvm/commit/d1a08b5145ea822c106e34043bf9b0a0be16c90d
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2017-02-12T08:51:11+01:00

Commit Message:
DIRECTOR: Lingo: Fix D3 script execution

Changed paths:
    engines/director/lingo/lingo.cpp


diff --git a/engines/director/lingo/lingo.cpp b/engines/director/lingo/lingo.cpp
index 79dfc1f..d90fac3 100644
--- a/engines/director/lingo/lingo.cpp
+++ b/engines/director/lingo/lingo.cpp
@@ -300,10 +300,10 @@ void Lingo::processEvent(LEvent event, ScriptType st, int entityId) {
 		error("processEvent: Unknown event %d for entity %d", event, entityId);
 
 	if (_handlers.contains(ENTITY_INDEX(event, entityId))) {
-		call(_eventHandlerTypes[event], 0); //D4+ Events
+		call(_eventHandlerTypes[event], 0); // D4+ Events
 		pop();
 	} else if (_scripts[st].contains(entityId)) {
-		executeScript(st, entityId + 1); //D3 list of scripts.
+		executeScript(st, entityId - 1); // D3 list of scripts.
 	} else {
 		debugC(8, kDebugLingoExec, "STUB: processEvent(%s) for %d", _eventHandlerTypes[event], entityId);
 	}





More information about the Scummvm-git-logs mailing list