From 0e7f2e1b4f19550a28c6e69d55b24da944207eb0 Mon Sep 17 00:00:00 2001 From: Ren Erthilo Date: Mon, 30 Apr 2012 00:32:57 +0100 Subject: [PATCH] TG: More work on NTSL and world/Topic() Includes a plethora of new NTSL functions, courtesy of Donkieyo (thread: http://nanotrasen.com/phpBB3/viewtopic.php?f=16&t=8153) Bugfix for a weird runtime generated when an AI tries to interact with telecomms machinery directly. Revision: r3347 Author: vageyenaman --- code/game/topic.dm | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/code/game/topic.dm b/code/game/topic.dm index f60ec272c91..883f6b68da3 100644 --- a/code/game/topic.dm +++ b/code/game/topic.dm @@ -12,8 +12,11 @@ s["host"] = host ? host : null s["players"] = list() s["admins"] = 0 + var/admins = 0 var/n = 0 + for(var/client/C) + n++ if(C.holder && C.holder.level >= 0) //not retired admin if(!C.stealth) //stealthmins dont count as admins @@ -25,4 +28,9 @@ s["player[n]"] = "[C.key]" s["players"] = n s["end"] = "#end" - return list2params(s) \ No newline at end of file + + // 7 + s["players"] + 1 = index of s["revinfo"] + s["revision"] = revdata.revision + s["admins"] = admins + + return list2params(s)