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 //