From f85420ec0145439291407ca16f39e283d628c19e Mon Sep 17 00:00:00 2001 From: Luc <89928798+lewcc@users.noreply.github.com> Date: Tue, 18 Jan 2022 12:43:08 -0500 Subject: [PATCH] (restores) CLONG CLONG (#17336) --- code/modules/recycling/disposal.dm | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) 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)