From e4448dc1d62c6f68a97cf25a66830ab2d0523ed5 Mon Sep 17 00:00:00 2001 From: savask Date: Sat, 14 Apr 2012 17:28:04 +0700 Subject: [PATCH] No unmeltable ice anymore. --- src/powder.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/powder.c b/src/powder.c index e9cf2ce41..ceab90e16 100644 --- a/src/powder.c +++ b/src/powder.c @@ -1932,7 +1932,7 @@ void update_particles_i(pixel *vid, int start, int inc) s = 1; //A fix for ice with ctype = 0 - if (t==PT_ICEI && parts[i].ctype==0) + if (t==PT_ICEI && (parts[i].ctype==0 || parts[i].ctype>=PT_NUM || parts[i].ctype==PT_ICEI)) parts[i].ctype = PT_WATR; if (ctemph>ptransitions[t].thv&&ptransitions[t].tht>-1) {