aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/director/lingo/lingo-the.cpp4
-rw-r--r--engines/director/score.h1
2 files changed, 5 insertions, 0 deletions
diff --git a/engines/director/lingo/lingo-the.cpp b/engines/director/lingo/lingo-the.cpp
index 13471fde6a..a8633f1765 100644
--- a/engines/director/lingo/lingo-the.cpp
+++ b/engines/director/lingo/lingo-the.cpp
@@ -427,6 +427,10 @@ Datum Lingo::getTheEntity(int entity, Datum &id, int field) {
d.type = INT;
d.u.i = _vm->_machineType;
break;
+ case kTheFrame:
+ d.type = INT;
+ d.u.i = _vm->getCurrentScore()->getCurrentFrame();
+ break;
default:
warning("Unprocessed getting field %d of entity %d", field, entity);
d.type = VOID;
diff --git a/engines/director/score.h b/engines/director/score.h
index b5c66d1d61..83f25284b1 100644
--- a/engines/director/score.h
+++ b/engines/director/score.h
@@ -188,6 +188,7 @@ public:
void loadConfig(Common::SeekableSubReadStreamEndian &stream);
void loadCastData(Common::SeekableSubReadStreamEndian &stream);
void setCurrentFrame(uint16 frameId) { _currentFrame = frameId; }
+ int getCurrentFrame() { return _currentFrame; }
Common::String getMacName() const { return _macName; }
Sprite *getSpriteById(uint16 id);