Merge pull request #14813 from tgstation/duncathan-patch-2

Fixes asteroid turfs releasing air after being mined
This commit is contained in:
tkdrg
2016-01-23 14:19:11 -03:00
+2 -2
View File
@@ -161,8 +161,8 @@
total.temperature += S.air.temperature
turf_count++
air.copy_from(total)
if(turf_count) //if there weren't any open turfs, no need to update.
air.copy_from(total)
var/list/air_gases = air.gases
for(var/id in air_gases)
air_gases[id][MOLES] /= turf_count //Averages contents of the turfs, ignoring walls and the like
@@ -344,4 +344,4 @@
name = "iced rock"
desc = "Extremely densely-packed sheets of ice and rock, forged over the years of the harsh cold."
icon = 'icons/turf/walls.dmi'
icon_state = "icerock"
icon_state = "icerock"