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:
jacksonmj 2011-01-27 22:38:47 +00:00
parent 58a700fbb0
commit 2654996599

View File

@ -1565,6 +1565,7 @@ void update_particles_i(pixel *vid, int start, int inc)
}
else s = 0;
if (s) { // particle type change occurred
parts[i].life = 0;
if (t==PT_ICEI||t==PT_LAVA)
parts[i].ctype = parts[i].type;
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;
if (s) { // particle type change occurred
parts[i].life = 0;
part_change_type(i,x,y,t);
if (t==PT_FIRE)
parts[i].life = rand()%50+120;