Prevents vents / scrubbers from making air from walls (#16236)

* Prevents getting free air from walls

* Almost forgot
This commit is contained in:
Qwertytoforty
2021-07-27 19:26:11 -04:00
committed by GitHub
parent 86651f4c9f
commit b8e84c73bf
3 changed files with 11 additions and 0 deletions
@@ -23,6 +23,10 @@
if(!node)
return 0
var/turf/T = loc
if(T.density) //No, you should not be able to get free air from walls
return
var/datum/gas_mixture/environment = loc.return_air()
var/pressure_delta = air_contents.return_pressure() - environment.return_pressure()
@@ -130,6 +130,9 @@
..()
if(stat & (NOPOWER|BROKEN))
return FALSE
var/turf/T = loc
if(T.density) //No, you should not be able to get free air from walls
return
if(!node)
on = FALSE
//broadcast_status() // from now air alarm/control computer should request update purposely --rastaf0
@@ -196,6 +196,10 @@
if(stat & (NOPOWER|BROKEN))
return
var/turf/T = loc
if(T.density) //No, you should not be able to get free air from walls
return
if(!node)
on = 0