[MIRROR] [GBP Ignore] Disposals pipes now correctly release their contents when destroyed by damage. [MDB IGNORE] (#17503)

* [GBP Ignore] Disposals pipes now correctly release their contents when destroyed by damage. (#71276)

## About The Pull Request
Disposals pipes didn't correctly release their contents when they were
destroyed by damage, causing anything inside to be deleted. That has
been fixed.
Fixes #71252.
## Why It's Good For The Game
Bugfix
## Changelog
🆑
fix: Fixed disposals pipes qdel-ing their contents when their integrity
hits zero.
/🆑

* [GBP Ignore] Disposals pipes now correctly release their contents when destroyed by damage.

Co-authored-by: zxaber <37497534+zxaber@users.noreply.github.com>
This commit is contained in:
SkyratBot
2022-11-16 10:53:21 -05:00
committed by GitHub
co-authored by zxaber
parent 987caa9905
commit 60c0d5e493
+1 -7
View File
@@ -50,10 +50,6 @@
qdel(stored)
return ..()
/obj/structure/disposalpipe/deconstruct()
spew_forth()
return ..()
/**
* Expells the pipe's contents.
*
@@ -167,15 +163,13 @@
transfer_fingerprints_to(stored)
stored.setDir(dir)
stored = null
if (contents.len > 1) // if there is actually something in the pipe
var/obj/structure/disposalholder/holder = locate() in src
expel(holder, loc, dir)
else
var/turf/T = get_turf(src)
for(var/D in GLOB.cardinals)
if(D & dpdir)
var/obj/structure/disposalpipe/broken/P = new(T)
P.setDir(D)
spew_forth()
qdel(src)