summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsavask <savask@yandex.ru>2012-04-14 10:28:04 (GMT)
committer savask <savask@yandex.ru>2012-04-14 10:30:57 (GMT)
commite4448dc1d62c6f68a97cf25a66830ab2d0523ed5 (patch)
treef39fd760224ee5f56ba9b57f984b171614eca0bc /src
parent9f067224b82751e94d0ad377d9653ce160daa03d (diff)
downloadpowder-e4448dc1d62c6f68a97cf25a66830ab2d0523ed5.zip
powder-e4448dc1d62c6f68a97cf25a66830ab2d0523ed5.tar.gz
No unmeltable ice anymore.
Diffstat (limited to 'src')
-rw-r--r--src/powder.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/powder.c b/src/powder.c
index e9cf2ce..ceab90e 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) {