From d3acda91f637346a878a5ccf3e3936604e9ebe2b Mon Sep 17 00:00:00 2001 From: Oliver Kiehl Date: Sun, 25 May 2003 11:45:04 +0000 Subject: add one more function. now it runs for minutes and minutes... svn-id: r7936 --- sky/logic.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'sky') diff --git a/sky/logic.cpp b/sky/logic.cpp index 52f69747d3..20db75a7df 100644 --- a/sky/logic.cpp +++ b/sky/logic.cpp @@ -1560,8 +1560,10 @@ uint32 SkyLogic::fnRandom(uint32 a, uint32 b, uint32 c) { error("Stub: fnRandom"); } -uint32 SkyLogic::fnPersonHere(uint32 a, uint32 b, uint32 c) { - error("Stub: fnPersonHere"); +uint32 SkyLogic::fnPersonHere(uint32 id, uint32 room, uint32 c) { + Compact *cpt = SkyState::fetchCompact(id); + _scriptVariables[RESULT] = cpt->screen == room ? 1 : 0; + return 1; } uint32 SkyLogic::fnToggleMouse(uint32 a, uint32 b, uint32 c) { -- cgit v1.2.3