From 8532628f972c8afd0bb40a0fb6cbef4dca93eaae Mon Sep 17 00:00:00 2001 From: Nathanael Gentry Date: Sat, 11 Apr 2020 22:32:22 -0400 Subject: [PATCH] DIRECTOR: LINGO: Implement kTheLastFrame property --- engines/director/lingo/lingo-the.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/engines/director/lingo/lingo-the.cpp b/engines/director/lingo/lingo-the.cpp index a1332510d6c..41d728d380d 100644 --- a/engines/director/lingo/lingo-the.cpp +++ b/engines/director/lingo/lingo-the.cpp @@ -425,7 +425,11 @@ Datum Lingo::getTheEntity(int entity, Datum &id, int field) { case kTheStillDown: d.type = INT; d.u.i = _vm->getCurrentScore()->_mouseIsDown; - break; + break; + case kTheLastFrame: + d.type = INT; + d.u.i = _vm->getCurrentScore()->_frames.size() - 1; + break; default: warning("Lingo::getTheEntity(): Unprocessed getting field \"%s\" of entity %s", field2str(field), entity2str(entity)); d.type = VOID;