From bc6561b9e4e392deaa69facc5057217864d22388 Mon Sep 17 00:00:00 2001 From: Ccomp5950 Date: Fri, 10 Jan 2014 15:59:40 -0600 Subject: [PATCH] Runtime fix for people that jump back in their body before hitting respawn or just stay in their body for 30 minutes. Who does that? People that cause runtimes, that's who! (Jerks) --- code/modules/mob/mob.dm | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/code/modules/mob/mob.dm b/code/modules/mob/mob.dm index 5cd8c2b68e..750f620956 100644 --- a/code/modules/mob/mob.dm +++ b/code/modules/mob/mob.dm @@ -348,10 +348,11 @@ var/list/slot_equipment_priority = list( \ return else var/deathtime = world.time - src.timeofdeath - var/mob/dead/observer/G = src - if(G.has_enabled_antagHUD == 1 && config.antag_hud_restricted) - usr << "\blue Upon using the antagHUD you forfeighted the ability to join the round." - return + if(istype(src,/mob/dead/observer)) + var/mob/dead/observer/G = src + if(G.has_enabled_antagHUD == 1 && config.antag_hud_restricted) + usr << "\blue Upon using the antagHUD you forfeighted the ability to join the round." + return var/deathtimeminutes = round(deathtime / 600) var/pluralcheck = "minute" if(deathtimeminutes == 0)