-Small improvement to atmos. Changed the "locate a space tile every time" to instead use a pre-located space tile. It'll stop the need to locate one everytime, but in the off-chance that the space tile isn't there anymore, it'll locate a new one.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4662 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
giacomand@gmail.com
2012-09-09 00:25:51 +00:00
parent 3f7985844e
commit d6db93bd38
2 changed files with 8 additions and 4 deletions

View File

@@ -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)

View File

@@ -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