diff options
Diffstat (limited to 'src/powder.c')
| -rw-r--r-- | src/powder.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/powder.c b/src/powder.c index cdff223..c7354bc 100644 --- a/src/powder.c +++ b/src/powder.c @@ -1614,6 +1614,19 @@ void update_particles_i(pixel *vid, int start, int inc) h_count = 0; if (t&&(t!=PT_HSWC||parts[i].life==10)&&ptypes[t].hconduct>(rand()%250)) { + if (aheat_enable) + { + if (hv[y/CELL][x/CELL] < parts[i].temp) + { + hv[y/CELL][x/CELL] = hv[y/CELL][x/CELL] + parts[i].temp*0.04; + parts[i].temp = parts[i].temp - hv[y/CELL][x/CELL]*0.04; + } + else + { + hv[y/CELL][x/CELL] = hv[y/CELL][x/CELL] - parts[i].temp*0.04; + parts[i].temp = parts[i].temp + hv[y/CELL][x/CELL]*0.04; + } + } for (j=0; j<8; j++) { surround_hconduct[j] = i; |
