diff options
| author | jacksonmj <mj-pt@jacksonmj.co.uk> | 2011-09-01 14:35:20 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2011-09-02 10:39:14 (GMT) |
| commit | 180d3ea60ff5483269877bfac33f55c8a837e0b8 (patch) | |
| tree | 9c6a6daa35ffe1b8b9c7d108cfd9ebf012a87d0c /src | |
| parent | d84abca852b9b693d40b253f674367789dda245c (diff) | |
| download | powder-180d3ea60ff5483269877bfac33f55c8a837e0b8.zip powder-180d3ea60ff5483269877bfac33f55c8a837e0b8.tar.gz | |
Limit particle-air heat transfer rate
Diffstat (limited to 'src')
| -rw-r--r-- | src/powder.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/powder.c b/src/powder.c index 36de448..e7afe4e 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; } |
