Limit particle-air heat transfer rate

This commit is contained in:
jacksonmj 2011-09-01 22:35:20 +08:00 committed by Simon Robertshaw
parent d84abca852
commit 180d3ea60f

View File

@ -1707,6 +1707,7 @@ void update_particles_i(pixel *vid, int start, int inc)
if (aheat_enable)
{
c_heat = (hv[y/CELL][x/CELL]-parts[i].temp)*0.04;
c_heat = restrict_flt(c_heat, -MAX_TEMP+MIN_TEMP, MAX_TEMP-MIN_TEMP);
parts[i].temp += c_heat;
hv[y/CELL][x/CELL] -= c_heat;
}