[Scummvm-git-logs] scummvm master -> 239b2984dfd1057ab0b5d3a937ccecb57220c2bf

djsrv dservilla at gmail.com
Tue Jun 16 13:20:00 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:
239b2984df DIRECTOR: LINGO: Remove handler exec from c_eval


Commit: 239b2984dfd1057ab0b5d3a937ccecb57220c2bf
    https://github.com/scummvm/scummvm/commit/239b2984dfd1057ab0b5d3a937ccecb57220c2bf
Author: djsrv (dservilla at gmail.com)
Date: 2020-06-16T09:19:11-04:00

Commit Message:
DIRECTOR: LINGO: Remove handler exec from c_eval

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


diff --git a/engines/director/lingo/lingo-code.cpp b/engines/director/lingo/lingo-code.cpp
index 0075776f26..5d5ff7ad6b 100644
--- a/engines/director/lingo/lingo-code.cpp
+++ b/engines/director/lingo/lingo-code.cpp
@@ -416,13 +416,6 @@ void LC::c_varpush() {
 		}
 	}
 
-	if (g_lingo->getHandler(name).type != VOID) {
-		d.type = HANDLER;
-		d.u.s = new Common::String(name);
-		g_lingo->push(d);
-		return;
-	}
-
 	d.type = VAR;
 	d.u.s = new Common::String(name);
 	g_lingo->push(d);
@@ -458,12 +451,6 @@ void LC::c_eval() {
 	Datum d;
 	d = g_lingo->pop();
 
-	if (d.type == HANDLER) {
-		LC::call(*d.u.s, 0);
-		delete d.u.s;
-		return;
-	}
-
 	if (d.type != VAR) { // It could be cast ref
 		g_lingo->push(d);
 		return;




More information about the Scummvm-git-logs mailing list