mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-18 02:24:11 +01:00
Fixes an obscure runtime which happens when there are no human players and an Ion-Storm occurs.
git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4771 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
@@ -433,7 +433,10 @@ Would like to add a law like "Law x is _______" where x = a number, and _____ is
|
||||
var/list/pos_crew = list()
|
||||
for(var/mob/living/carbon/human/pos in player_list)
|
||||
pos_crew += pos.real_name
|
||||
crew = pick(pos_crew)
|
||||
if(pos_crew.len)
|
||||
crew = pick(pos_crew)
|
||||
else
|
||||
crew = "Any Human"
|
||||
switch(rand(1,14))
|
||||
if(1)
|
||||
M << "\red THERE ARE [amount] [who2] ON THE STATION...LAWS UPDATED"
|
||||
|
||||
Reference in New Issue
Block a user