diff --git a/code/modules/recycling/disposal.dm b/code/modules/recycling/disposal.dm index 2fb16126c56..9cf0e6e231c 100644 --- a/code/modules/recycling/disposal.dm +++ b/code/modules/recycling/disposal.dm @@ -640,22 +640,22 @@ // called when player tries to move while in a pipe -/obj/structure/disposalholder/relaymove(mob/user as mob) - if(!istype(user,/mob/living)) +/obj/structure/disposalholder/relaymove(mob/user) + if(!istype(user, /mob/living)) return var/mob/living/U = user - if(U.stat || U.last_special <= world.time) + if(U.stat || world.time <= U.last_special) return - U.last_special = world.time+100 + U.last_special = world.time + 100 - if(src.loc) - for(var/mob/M in hearers(src.loc.loc)) + if(loc) + for(var/mob/M in hearers(loc.loc)) to_chat(M, "CLONG, clong!") - playsound(src.loc, 'sound/effects/clang.ogg', 50, 0, 0) + playsound(loc, 'sound/effects/clang.ogg', 50, 0, 0) // called to vent all gas in holder to a location /obj/structure/disposalholder/proc/vent_gas(atom/location)