Fix heat exchangers not radiating properly on /turf/simulated/open (#14341)

This commit is contained in:
Wildkins
2022-06-19 11:22:43 +02:00
committed by GitHub
parent 07a8b16890
commit 033ad6d0f9
2 changed files with 9 additions and 3 deletions
+3 -3
View File
@@ -58,7 +58,9 @@
..()
else
var/datum/gas_mixture/pipe_air = return_air()
if(istype(loc, /turf/simulated/))
if(istype(loc, /turf/space) || (isopenturf(loc) && (istype(GetBelow(loc), /turf/space) || istype(GetAbove(loc), /turf/space))))
parent.radiate_heat_to_space(surface, 1)
else if(istype(loc, /turf/simulated/))
var/environment_temperature = 0
if(loc:blocks_air)
environment_temperature = loc:temperature
@@ -67,8 +69,6 @@
environment_temperature = environment.temperature
if(abs(environment_temperature-pipe_air.temperature) > minimum_temperature_difference)
parent.temperature_interact(loc, volume, thermal_conductivity)
else if(istype(loc, /turf/space/))
parent.radiate_heat_to_space(surface, 1)
if(istype(buckled, /mob/living))
var/mob/living/M = buckled
@@ -0,0 +1,6 @@
author: JohnWildkins
delete-after: True
changes:
- bugfix: "Fix heat exchangers not radiating properly on open space turfs (as opposed to space turfs). This should stop the supermatter delaminating on nominally \"safe\" setups."