From e52f730969a4d1a551dd76d21c16068e05395dac Mon Sep 17 00:00:00 2001 From: savask Date: Sat, 7 Apr 2012 14:50:07 +0700 Subject: [PATCH] A fix for ice with ctype = 0. --- src/powder.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/powder.c b/src/powder.c index 95b833355..e9cf2ce41 100644 --- a/src/powder.c +++ b/src/powder.c @@ -1930,6 +1930,11 @@ void update_particles_i(pixel *vid, int start, int inc) || t==PT_WTRV) ctempl -= 2.0f*pv[y/CELL][x/CELL]; s = 1; + + //A fix for ice with ctype = 0 + if (t==PT_ICEI && parts[i].ctype==0) + parts[i].ctype = PT_WATR; + if (ctemph>ptransitions[t].thv&&ptransitions[t].tht>-1) { // particle type change due to high temperature #ifdef REALISTIC