mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-30 11:19:51 +02:00
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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user