aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2020-01-08 20:12:17 +0100
committerEugene Sandulenko2020-01-08 23:08:12 +0100
commitf4a439a8e891efe4ca5eb151bec0c2761cbac39f (patch)
tree2a99dd876589d98746c3e37776d34621ccde737e
parentb19c1f74494292e35bcc15d63d03add777060bbc (diff)
downloadscummvm-rg350-f4a439a8e891efe4ca5eb151bec0c2761cbac39f.tar.gz
scummvm-rg350-f4a439a8e891efe4ca5eb151bec0c2761cbac39f.tar.bz2
scummvm-rg350-f4a439a8e891efe4ca5eb151bec0c2761cbac39f.zip
DIRECTOR: LINGO: Implement 'the pi'
-rw-r--r--engines/director/lingo/lingo-the.cpp5
-rw-r--r--engines/director/lingo/lingo-the.h1
2 files changed, 6 insertions, 0 deletions
diff --git a/engines/director/lingo/lingo-the.cpp b/engines/director/lingo/lingo-the.cpp
index 091ea4c601..79ea2f2866 100644
--- a/engines/director/lingo/lingo-the.cpp
+++ b/engines/director/lingo/lingo-the.cpp
@@ -101,6 +101,7 @@ TheEntity entities[] = {
{ kTheParamCount, "paramCount", false, 4 }, // D4 f
{ kThePathName, "pathName", false, 2 }, // D2 f
{ kThePauseState, "pauseState", false, 2 }, // D2 f
+ { kThePi, "pi", false, 4 }, // D4 f
{ kThePerFrameHook, "perFrameHook", false, 2 }, // D2 p
{ kThePreloadEventAbort,"preloadEventAbort",false, 4 }, // D4 p
{ kThePreLoadRAM, "preLoadRAM", false, 4 }, // D4 p
@@ -523,6 +524,10 @@ Datum Lingo::getTheEntity(int entity, Datum &id, int field) {
d.type = INT;
d.u.i = _vm->getCurrentScore()->_mouseIsDown;
break;
+ case kThePi:
+ d.type = FLOAT;
+ d.u.f = M_PI;
+ break;
default:
warning("Lingo::getTheEntity(): Unprocessed getting field %d of entity %d", field, entity);
d.type = VOID;
diff --git a/engines/director/lingo/lingo-the.h b/engines/director/lingo/lingo-the.h
index c4306d4416..9857adb9d9 100644
--- a/engines/director/lingo/lingo-the.h
+++ b/engines/director/lingo/lingo-the.h
@@ -99,6 +99,7 @@ enum TheEntityType {
kThePathName,
kThePauseState,
kThePerFrameHook,
+ kThePi,
kThePreloadEventAbort,
kThePreLoadRAM,
kTheQuickTimePresent,