From 1d7858d54fc97afa0a8b82fae7699200ac2854bb Mon Sep 17 00:00:00 2001 From: ChuckTheSheep Date: Mon, 6 Jan 2014 18:01:28 -0500 Subject: [PATCH] Fixes regarding path case --- code/game/objects/objs.dm | 8 ++++---- code/game/objects/structures/morgue.dm | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/code/game/objects/objs.dm b/code/game/objects/objs.dm index ac9ad984c4f..6a4365bff86 100644 --- a/code/game/objects/objs.dm +++ b/code/game/objects/objs.dm @@ -133,20 +133,20 @@ -//If a mob logout in side of an object you can use this proc -obj/proc/on_log() +//If a mob logouts/logins in side of an object you can use this proc +/obj/proc/on_log() ..() if(isobj(loc)) var/obj/Loc=loc Loc.on_log() -mob/Living/Login() //re-enter +/mob/living/Login() //re-enter ..() if(isobj(loc)) var/obj/Loc=loc Loc.on_log() -mob/Living/Logout() //exit body +/mob/living/Logout() //exit body ..() if(isobj(loc)) var/obj/Loc=loc diff --git a/code/game/objects/structures/morgue.dm b/code/game/objects/structures/morgue.dm index ef2bc7ad49d..bbb86019d1a 100644 --- a/code/game/objects/structures/morgue.dm +++ b/code/game/objects/structures/morgue.dm @@ -35,10 +35,10 @@ var/compiled = recursive_mob_check(src)//run through contents - if(!locate(/mob/Living) in compiled)//no mobs at all, but objects inside + if(!locate(/mob/living/) in compiled)//no mobs at all, but objects inside src.icon_state = "morgue3" - for(var/mob/Living/M in compiled) + for(var/mob/living/M in compiled) if(M.client) src.icon_state = "morgue4"//clone that mofo