From f4a439a8e891efe4ca5eb151bec0c2761cbac39f Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Wed, 8 Jan 2020 20:12:17 +0100 Subject: DIRECTOR: LINGO: Implement 'the pi' --- engines/director/lingo/lingo-the.cpp | 5 +++++ engines/director/lingo/lingo-the.h | 1 + 2 files changed, 6 insertions(+) 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, -- cgit v1.2.3