Fix construction of HE pipes, Vents, and Scrubbers Plus qdel issues.

The initialize() routines of HE pipes, vents an scrubbers need to be atmos_init() after all.
If you register yourself with radio controller you need to de-register yourself too.
This commit is contained in:
Leshana
2018-01-19 23:21:55 -05:00
parent 8255744c2b
commit ab87edeae9
12 changed files with 42 additions and 5 deletions

View File

@@ -47,6 +47,10 @@
air2.volume = ATMOS_DEFAULT_VOLUME_PUMP
icon = null
/obj/machinery/atmospherics/binary/dp_vent_pump/Destroy()
unregister_radio(src, frequency)
. = ..()
/obj/machinery/atmospherics/binary/dp_vent_pump/high_volume
name = "Large Dual Port Air Vent"

View File

@@ -29,6 +29,10 @@
air1.volume = ATMOS_DEFAULT_VOLUME_PUMP * 2.5
air2.volume = ATMOS_DEFAULT_VOLUME_PUMP * 2.5
/obj/machinery/atmospherics/binary/passive_gate/Destroy()
unregister_radio(src, frequency)
. = ..()
/obj/machinery/atmospherics/binary/passive_gate/update_icon()
icon_state = (unlocked && flowing)? "on" : "off"

View File

@@ -39,6 +39,10 @@ Thus, the two variables affect pump operation are set in New():
air1.volume = ATMOS_DEFAULT_VOLUME_PUMP
air2.volume = ATMOS_DEFAULT_VOLUME_PUMP
/obj/machinery/atmospherics/binary/pump/Destroy()
unregister_radio(src, frequency)
. = ..()
/obj/machinery/atmospherics/binary/pump/on
icon_state = "map_on"
use_power = 1