Fix for revdata=null causing world/Topic() runtimes.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4420 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
elly1989@rocketmail.com
2012-08-15 19:14:48 +00:00
parent b1abc73199
commit 69f0046185
2 changed files with 2 additions and 3 deletions

View File

@@ -25,7 +25,7 @@ var/global/datum/getrev/revdata = new("config/svndir.txt")
var/text = file2text(file(filename))
if(!text)
diary << "Unable to get [filename] contents, aborting"
world.log << "Unable to get [filename] contents, aborting"
return abort()
var/list/CL = tg_text2list(text, "\n")

View File

@@ -36,8 +36,7 @@
n++
s["players"] = n
// 7 + s["players"] + 1 = index of s["revinfo"]
s["revision"] = revdata.revision
if(revdata) s["revision"] = revdata.revision
s["admins"] = admins
return list2params(s)