diff --git a/code/FEA/FEA_turf_tile.dm b/code/FEA/FEA_turf_tile.dm index f048c89096..9af7bd58ec 100644 --- a/code/FEA/FEA_turf_tile.dm +++ b/code/FEA/FEA_turf_tile.dm @@ -499,10 +499,12 @@ turf mimic_temperature_solid(neighbor, neighbor.thermal_conductivity) //Radiate excess tile heat to space - var/turf/space/sample_space = locate(/turf/space) - if(sample_space && (temperature > T0C)) - //Considering 0 degC as te break even point for radiation in and out - mimic_temperature_solid(sample_space, FLOOR_HEAT_TRANSFER_COEFFICIENT) + if(temperature > T0C) + // Is there a pre-defined Space Tile? + if(!Space_Tile) + Space_Tile = locate(/turf/space) // Define one + //Considering 0 degC as te break even point for radiation in and out + mimic_temperature_solid(Space_Tile, FLOOR_HEAT_TRANSFER_COEFFICIENT) //Conduct with air on my tile if I have it if(air) diff --git a/code/setup.dm b/code/setup.dm index 0317a54a73..e77c20295f 100644 --- a/code/setup.dm +++ b/code/setup.dm @@ -105,6 +105,8 @@ #define T20C 293.15 // 20degC #define TCMB 2.7 // -270.3degC +var/turf/space/Space_Tile = locate(/turf/space) // A space tile to reference when atmos wants to remove excess heat. + #define TANK_LEAK_PRESSURE (30.*ONE_ATMOSPHERE) // Tank starts leaking #define TANK_RUPTURE_PRESSURE (40.*ONE_ATMOSPHERE) // Tank spills all contents into atmosphere