runtime fixes

This commit is contained in:
ZomgPonies
2014-02-26 16:56:00 -05:00
parent c4ac1d336b
commit b1f8d67c34
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -1151,7 +1151,7 @@
E = get_visible_implants(0)
if(!E.len)
embedded_flag = 0
//Eyes
if(sdisabilities & BLIND) //disabled-blind, doesn't get better on its own
@@ -1461,7 +1461,7 @@
if(!masked && istype(glasses, /obj/item/clothing/glasses/welding) )
var/obj/item/clothing/glasses/welding/O = glasses
if(!O.up && tinted_weldhelh)
client.screen += O.getMask()
client.screen += global_hud.darkMask
if(machine)
if(!machine.check_eye(src)) reset_view(null)
+1 -1
View File
@@ -422,7 +422,7 @@ var/list/department_radio_keys = list(
M.playsound_local(get_turf(src), "sound/playervoices/[src.ckey].ogg", 70, 0, 5, 1)
if(!istype(M, /mob/new_player))
if(M && M.stat == DEAD)
if ((M.client.prefs.toggles & CHAT_GHOSTEARS) && M in onscreen)
if (M.client && M.client.prefs && (M.client.prefs.toggles & CHAT_GHOSTEARS) && M in onscreen)
rendered2 = "<span class='game say'><span class='name'>[GetVoice()]</span></span> [alt_name] <a href='byond://?src=\ref[M];follow2=\ref[M];follow=\ref[src]'>(Follow)</a> <span class='message'>[message_ghost]</span></span>"
else
rendered2 = "<span class='game say'><span class='name'>[GetVoice()]</span></span> [alt_name] <a href='byond://?src=\ref[M];follow2=\ref[M];follow=\ref[src]'>(Follow)</a> <span class='message'>[message_a]</span></span>"