Skip to content

Commit

Permalink
Runtime fix: division by zero
Browse files Browse the repository at this point in the history
git-svn-id: http://tgstation13.googlecode.com/svn/trunk@2327 316c924e-a436-60f5-8080-3fe189b3f50e
  • Loading branch information
[email protected] committed Oct 4, 2011
1 parent 6288dc7 commit 1eff2da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/FEA/FEA_turf_tile.dm
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@ turf

proc/share_temperature_mutual_solid(turf/simulated/sharer, conduction_coefficient)
var/delta_temperature = (temperature_archived - sharer.temperature_archived)
if(abs(delta_temperature) > MINIMUM_TEMPERATURE_DELTA_TO_CONSIDER)
if(abs(delta_temperature) > MINIMUM_TEMPERATURE_DELTA_TO_CONSIDER && heat_capacity && sharer.heat_capacity)

var/heat = conduction_coefficient*delta_temperature* \
(heat_capacity*sharer.heat_capacity/(heat_capacity+sharer.heat_capacity))
Expand Down

0 comments on commit 1eff2da

Please sign in to comment.