From ff0c628db61f3b0330c4255db88664fb5a2ef748 Mon Sep 17 00:00:00 2001 From: S34N <12197162+S34NW@users.noreply.github.com> Date: Thu, 3 Nov 2022 04:12:04 +0000 Subject: [PATCH] fixes weird pipes (#19530) --- code/modules/recycling/disposal.dm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/code/modules/recycling/disposal.dm b/code/modules/recycling/disposal.dm index 09d687fcaf9..ca70ff46981 100644 --- a/code/modules/recycling/disposal.dm +++ b/code/modules/recycling/disposal.dm @@ -760,10 +760,11 @@ return P -// update the icon_state to reflect hidden status +// update the icon_state to reflect hidden status and change icon when welded /obj/structure/disposalpipe/proc/update() var/turf/T = get_turf(src) hide(T.intact && !isspaceturf(T) && !T.transparent_floor) // space and transparent floors never hide pipes + update_icon(UPDATE_ICON_STATE) // hide called by levelupdate if turf intact status changes // change visibility status @@ -775,6 +776,10 @@ invisibility = INVISIBILITY_MINIMUM alpha = 255 +// makes sure we are using the right icon state when we secure the disposals +/obj/structure/disposalpipe/update_icon_state() + icon_state = base_icon_state + // expel the held objects into a turf // called when there is a break in the pipe //