aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorEugene Sandulenko2019-12-30 19:20:29 +0100
committerEugene Sandulenko2019-12-30 19:20:29 +0100
commit8e221b8d98a8386fc17f7282c79ad1c706a5f700 (patch)
treeffc6612664476400a762184f318a41a55036c477 /engines
parentaaa647530bd871f003039080fa36a741d914e0b9 (diff)
downloadscummvm-rg350-8e221b8d98a8386fc17f7282c79ad1c706a5f700.tar.gz
scummvm-rg350-8e221b8d98a8386fc17f7282c79ad1c706a5f700.tar.bz2
scummvm-rg350-8e221b8d98a8386fc17f7282c79ad1c706a5f700.zip
DIRECTOR: LINGO: Load 'the entities' and fields per Director version
Diffstat (limited to 'engines')
-rw-r--r--engines/director/lingo/lingo-the.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/engines/director/lingo/lingo-the.cpp b/engines/director/lingo/lingo-the.cpp
index b9575a2b91..a9bffbbd57 100644
--- a/engines/director/lingo/lingo-the.cpp
+++ b/engines/director/lingo/lingo-the.cpp
@@ -119,7 +119,7 @@ TheEntity entities[] = {
{ kTheShiftDown, "shiftDown", false, 2 }, // D2 f
{ kTheSoundEnabled, "soundEnabled", false, 2 }, // D2 p
{ kTheSoundLevel, "soundLevel", false, 2 }, // D2 p
- { kTheSprite, "sprite", true, 4 }, // D4
+ { kTheSprite, "sprite", true, 2 }, // D4 p
{ kTheSqrt, "sqrt", false, 2 }, // D2 f
{ kTheStage, "stage", false, 4 }, // D4 p
{ kTheStageBottom, "stageBottom", false, 2 }, // D2 f
@@ -277,14 +277,18 @@ void Lingo::initTheEntities() {
TheEntity *e = entities;
while (e->entity != kTheNOEntity) {
- _theEntities[e->name] = e;
+ if (e->version <= _vm->getVersion())
+ _theEntities[e->name] = e;
+
e++;
}
TheEntityField *f = fields;
while (f->entity != kTheNOEntity) {
- _theEntityFields[Common::String::format("%d%s", f->entity, f->name)] = f;
+ if (f->version <= _vm->getVersion())
+ _theEntityFields[Common::String::format("%d%s", f->entity, f->name)] = f;
+
f++;
}
}