From 290cac8b7e0a10a91fefa41618130e478b44c2a9 Mon Sep 17 00:00:00 2001 From: savask Date: Fri, 2 Mar 2012 21:28:21 +0700 Subject: [PATCH] Volume from heat change (for REALISTIC) --- src/powder.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/powder.c b/src/powder.c index 72d1fac94..ddf7ebcad 100644 --- a/src/powder.c +++ b/src/powder.c @@ -1885,6 +1885,10 @@ void update_particles_i(pixel *vid, int start, int inc) 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; +#ifdef REALISTIC + //Volume increase from heat (temporary) + pv[y/CELL][x/CELL] -= c_heat*0.004; +#endif } c_heat = 0.0f; for (j=0; j<8; j++)