From da6a3e98d8ad9c560954b6427d3ef3adeee84183 Mon Sep 17 00:00:00 2001 From: PsiOmega Date: Tue, 11 Aug 2015 21:38:26 +0200 Subject: [PATCH] Fixes a borg spawn runtime. Adds client check to prevent null.statpanel runtime. --- code/modules/mob/living/silicon/robot/robot.dm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/code/modules/mob/living/silicon/robot/robot.dm b/code/modules/mob/living/silicon/robot/robot.dm index 549e14a5f6..872cf5f075 100644 --- a/code/modules/mob/living/silicon/robot/robot.dm +++ b/code/modules/mob/living/silicon/robot/robot.dm @@ -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"]"))