Fixes a borg spawn runtime.

Adds client check to prevent null.statpanel runtime.
This commit is contained in:
PsiOmega
2015-08-11 21:38:26 +02:00
committed by PsiOmegaDelta
parent 076e7d6788
commit da6a3e98d8

View File

@@ -421,8 +421,7 @@
// update the status screen display
/mob/living/silicon/robot/Stat()
..()
statpanel("Status")
if (client.statpanel == "Status")
if (statpanel("Status"))
show_cell_power()
show_jetpack_pressure()
stat(null, text("Lights: [lights_on ? "ON" : "OFF"]"))