Fixes disposal pipes being borked (#9474)

Fixes bent disposal pipes appearing straight after map initialization, fixes disposal pipes not behaving properly when deconstructed.
Removed the update_icon proc on them as it didn't do anything anymore after prior changes.
This commit is contained in:
fernerr
2020-07-26 19:29:46 +03:00
committed by GitHub
parent 2d26426d1f
commit 3f179063da
2 changed files with 5 additions and 11 deletions
+1 -11
View File
@@ -769,16 +769,6 @@
// change visibility status and force update of icon
/obj/structure/disposalpipe/hide(var/intact)
invisibility = intact ? 101: 0 // hide if floor is intact
update_icon()
// update actual icon_state depending on visibility
// if invisible, append "f" to icon_state to show faded version
// this will be revealed if a T-scanner is used
// if visible, use regular icon_state
/obj/structure/disposalpipe/update_icon()
icon_state = initial(icon_state)
return
// expel the held objects into a turf
// called when there is a break in the pipe
@@ -913,7 +903,7 @@
// called when pipe is cut with welder
/obj/structure/disposalpipe/proc/welded()
var/obj/structure/disposalconstruct/C = new (src.loc)
switch(initial(icon_state))
switch(icon_state)
if("pipe-s")
C.ptype = 0
if("pipe-c")