One last fix for this update

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@3346 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
VivianFoxfoot@gmail.com
2012-03-23 07:48:51 +00:00
parent 45ef9c8235
commit fc83354e02

View File

@@ -396,7 +396,7 @@ var/global/datum/tension/tension_master
sleep(300)
spawn(0)
if(candidates.len)
while(!theghost && !theghost.client && candidates.len)
while((!theghost || !theghost.client) && candidates.len)
theghost = pick(candidates)
candidates.Remove(theghost)
if(!theghost)
@@ -472,7 +472,7 @@ var/global/datum/tension/tension_master
syndicate_begin()
for(var/i = 0, i<numagents,i++)
while(!theghost && (!theghost.client) && candidates.len)
while((!theghost || !theghost.client) && candidates.len)
theghost = pick(candidates)
candidates.Remove(theghost)
if(!theghost)