Merge pull request #6302 from Citadel-Station-13/upstream-merge-36871

[MIRROR] Shuttle garbage collection
This commit is contained in:
deathride58
2018-04-08 02:24:54 +00:00
committed by GitHub
+8 -2
View File
@@ -32,7 +32,7 @@
// may result.
if(force)
..()
. = QDEL_HINT_HARDDEL_NOW
. = QDEL_HINT_QUEUE
else
return QDEL_HINT_LETMELIVE
@@ -187,6 +187,11 @@
highlight("#f00")
#endif
/obj/docking_port/stationary/Destroy(force)
if(force)
SSshuttle.stationary -= src
. = ..()
/obj/docking_port/stationary/proc/load_roundstart()
if(json_key)
var/sid = SSmapping.config.shuttles[json_key]
@@ -231,6 +236,8 @@
log_world("A transit dock was destroyed while something was docked to it.")
SSshuttle.transit -= src
if(owner)
if(owner.assigned_transit == src)
owner.assigned_transit = null
owner = null
if(assigned_turfs)
dezone()
@@ -238,7 +245,6 @@
assigned_turfs = null
. = ..()
/obj/docking_port/mobile
name = "shuttle"
icon_state = "pinonclose"