No unmeltable ice anymore.
This commit is contained in:
parent
9f067224b8
commit
e4448dc1d6
@ -1932,7 +1932,7 @@ void update_particles_i(pixel *vid, int start, int inc)
|
|||||||
s = 1;
|
s = 1;
|
||||||
|
|
||||||
//A fix for ice with ctype = 0
|
//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;
|
parts[i].ctype = PT_WATR;
|
||||||
|
|
||||||
if (ctemph>ptransitions[t].thv&&ptransitions[t].tht>-1) {
|
if (ctemph>ptransitions[t].thv&&ptransitions[t].tht>-1) {
|
||||||
|
Loading…
Reference in New Issue
Block a user