mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-15 01:54:52 +01:00
fixes runtimes
This commit is contained in:
@@ -24,12 +24,6 @@ Iconnery
|
||||
|
||||
..(intact)
|
||||
/*
|
||||
Helpers
|
||||
*/
|
||||
|
||||
/obj/machinery/atmospherics/components/binary/update_airs(var/a1, var/a2)
|
||||
..(list("a1" = a1, "a2" = a2))
|
||||
/*
|
||||
Housekeeping and pipe network stuff
|
||||
*/
|
||||
|
||||
|
||||
@@ -42,8 +42,6 @@
|
||||
//Actually transfer the gas
|
||||
var/datum/gas_mixture/removed = air2.remove(transfer_moles)
|
||||
|
||||
update_airs(air1, air2)
|
||||
|
||||
update_parents()
|
||||
|
||||
return removed
|
||||
|
||||
@@ -44,7 +44,6 @@ Acts like a normal vent, but has an input AND output.
|
||||
..()
|
||||
var/datum/gas_mixture/air1 = airs["a1"] ; air1.volume = 1000
|
||||
var/datum/gas_mixture/air2 = airs["a2"] ; air2.volume = 1000
|
||||
update_airs(air1, air2)
|
||||
|
||||
/obj/machinery/atmospherics/binary/dp_vent_pump/update_icon_nopipes()
|
||||
overlays.Cut()
|
||||
@@ -88,7 +87,7 @@ Acts like a normal vent, but has an input AND output.
|
||||
loc.assume_air(removed)
|
||||
air_update_turf()
|
||||
|
||||
update_parents(list("p1" = parents["p1"])) //this looks disgusting, but it works
|
||||
var/datum/pipeline/parent1 = parents["p1"] ; parent1.update = 1
|
||||
|
||||
else //external -> output
|
||||
var/pressure_delta = 10000
|
||||
@@ -107,9 +106,7 @@ Acts like a normal vent, but has an input AND output.
|
||||
air2.merge(removed)
|
||||
air_update_turf()
|
||||
|
||||
update_parents(list("p2" = parents["p2"]))
|
||||
|
||||
update_airs(air1, air2)
|
||||
var/datum/pipeline/parent2 = parents["p2"] ; parent2.update = 1
|
||||
|
||||
return 1
|
||||
|
||||
|
||||
@@ -62,7 +62,6 @@ Passive gate is similar to the regular pump except:
|
||||
var/datum/gas_mixture/removed = air1.remove(transfer_moles)
|
||||
air2.merge(removed)
|
||||
|
||||
update_airs(air1, air2)
|
||||
update_parents()
|
||||
|
||||
|
||||
|
||||
@@ -66,7 +66,6 @@ Thus, the two variables affect pump operation are set in New():
|
||||
var/datum/gas_mixture/removed = air1.remove(transfer_moles)
|
||||
air2.merge(removed)
|
||||
|
||||
update_airs(air1, air2)
|
||||
update_parents()
|
||||
|
||||
return 1
|
||||
|
||||
@@ -29,7 +29,6 @@ It's like a regular ol' straight pipe, but you can turn it on and off.
|
||||
update_icon_nopipes()
|
||||
update_parents()
|
||||
var/datum/pipeline/parent1 = parents["p1"] ; parent1.reconcile_air()
|
||||
parents["p1"] = parent1
|
||||
investigate_log("was opened by [usr ? key_name(usr) : "a remote signal"]", "atmos")
|
||||
|
||||
/obj/machinery/atmospherics/binary/valve/proc/close()
|
||||
|
||||
@@ -65,7 +65,6 @@ Thus, the two variables affect pump operation are set in New():
|
||||
|
||||
air2.merge(removed)
|
||||
|
||||
update_airs(air1, air2)
|
||||
update_parents()
|
||||
|
||||
return 1
|
||||
|
||||
Reference in New Issue
Block a user