From 180d3ea60ff5483269877bfac33f55c8a837e0b8 Mon Sep 17 00:00:00 2001 From: jacksonmj Date: Thu, 1 Sep 2011 22:35:20 +0800 Subject: [PATCH] Limit particle-air heat transfer rate --- src/powder.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/powder.c b/src/powder.c index 36de44844..e7afe4e3e 100644 --- a/src/powder.c +++ b/src/powder.c @@ -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; }