mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-28 23:58:07 +01:00
[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:
@@ -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)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user