From 26549965993c637636e525d4f23704b50c10129e Mon Sep 17 00:00:00 2001 From: jacksonmj Date: Thu, 27 Jan 2011 22:38:47 +0000 Subject: [PATCH] Fix disappearing WTRV If water is sparked then quickly heated past 100C, the resulting WTRV will disappear after a few frames. --- src/powder.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/powder.c b/src/powder.c index d595a5ab6..385ac5df2 100644 --- a/src/powder.c +++ b/src/powder.c @@ -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;