diff options
| author | savask <savask@yandex.ru> | 2012-03-02 14:28:21 (GMT) |
|---|---|---|
| committer | savask <savask@yandex.ru> | 2012-03-02 14:31:48 (GMT) |
| commit | 290cac8b7e0a10a91fefa41618130e478b44c2a9 (patch) | |
| tree | 6546123f02636d0604989ddf8fab3f5825eadbaa /src | |
| parent | 830629be3fcf401a9147b5348328c5c05c683ec9 (diff) | |
| download | powder-290cac8b7e0a10a91fefa41618130e478b44c2a9.zip powder-290cac8b7e0a10a91fefa41618130e478b44c2a9.tar.gz | |
Volume from heat change (for REALISTIC)
Diffstat (limited to 'src')
| -rw-r--r-- | src/powder.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/powder.c b/src/powder.c index 72d1fac..ddf7ebc 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++) |
