summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsavask <savask@yandex.ru>2012-04-07 07:50:07 (GMT)
committer savask <savask@yandex.ru>2012-04-07 07:53:00 (GMT)
commite52f730969a4d1a551dd76d21c16068e05395dac (patch)
treec70b9802ed463046276b3a2b5dc06796d6ce9ada /src
parentf40d6cd626a8c5da3bd6aec0ec5afaa3e217f341 (diff)
downloadpowder-e52f730969a4d1a551dd76d21c16068e05395dac.zip
powder-e52f730969a4d1a551dd76d21c16068e05395dac.tar.gz
A fix for ice with ctype = 0.
Diffstat (limited to 'src')
-rw-r--r--src/powder.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/powder.c b/src/powder.c
index 95b8333..e9cf2ce 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