diff options
author | Oliver Kiehl | 2003-05-25 11:45:04 +0000 |
---|---|---|
committer | Oliver Kiehl | 2003-05-25 11:45:04 +0000 |
commit | d3acda91f637346a878a5ccf3e3936604e9ebe2b (patch) | |
tree | 1dfdac87b36651a5057ee54163f1b291ee3f7baa /sky | |
parent | 80df4a8a00e7c42edfff351c5e793a3498453ec2 (diff) | |
download | scummvm-rg350-d3acda91f637346a878a5ccf3e3936604e9ebe2b.tar.gz scummvm-rg350-d3acda91f637346a878a5ccf3e3936604e9ebe2b.tar.bz2 scummvm-rg350-d3acda91f637346a878a5ccf3e3936604e9ebe2b.zip |
add one more function. now it runs for minutes and minutes...
svn-id: r7936
Diffstat (limited to 'sky')
-rw-r--r-- | sky/logic.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
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) { |