fixes weird pipes (#19530)

This commit is contained in:
S34N
2022-11-02 23:12:04 -05:00
committed by GitHub
parent c5bc28f41f
commit ff0c628db6
+6 -1
View File
@@ -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
//