Fix disappearing WTRV
If water is sparked then quickly heated past 100C, the resulting WTRV will disappear after a few frames.
This commit is contained in:
parent
58a700fbb0
commit
2654996599
@ -1565,6 +1565,7 @@ void update_particles_i(pixel *vid, int start, int inc)
|
|||||||
}
|
}
|
||||||
else s = 0;
|
else s = 0;
|
||||||
if (s) { // particle type change occurred
|
if (s) { // particle type change occurred
|
||||||
|
parts[i].life = 0;
|
||||||
if (t==PT_ICEI||t==PT_LAVA)
|
if (t==PT_ICEI||t==PT_LAVA)
|
||||||
parts[i].ctype = parts[i].type;
|
parts[i].ctype = parts[i].type;
|
||||||
if (ptypes[t].state==ST_GAS&&ptypes[parts[i].type].state!=ST_GAS)
|
if (ptypes[t].state==ST_GAS&&ptypes[parts[i].type].state!=ST_GAS)
|
||||||
@ -1672,6 +1673,7 @@ void update_particles_i(pixel *vid, int start, int inc)
|
|||||||
}
|
}
|
||||||
else s = 0;
|
else s = 0;
|
||||||
if (s) { // particle type change occurred
|
if (s) { // particle type change occurred
|
||||||
|
parts[i].life = 0;
|
||||||
part_change_type(i,x,y,t);
|
part_change_type(i,x,y,t);
|
||||||
if (t==PT_FIRE)
|
if (t==PT_FIRE)
|
||||||
parts[i].life = rand()%50+120;
|
parts[i].life = rand()%50+120;
|
||||||
|
Loading…
Reference in New Issue
Block a user