summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjacksonmj <jacksonmj@jacksonmj.none>2011-01-27 22:38:47 (GMT)
committer jacksonmj <jacksonmj@jacksonmj.none>2011-01-27 22:38:47 (GMT)
commit26549965993c637636e525d4f23704b50c10129e (patch)
tree060e83e6943cdf588161934568bdef52bc5c5a4a /src
parent58a700fbb00e8ad82f239a0ea80d0e92fcb9eaf9 (diff)
downloadpowder-26549965993c637636e525d4f23704b50c10129e.zip
powder-26549965993c637636e525d4f23704b50c10129e.tar.gz
Fix disappearing WTRV
If water is sparked then quickly heated past 100C, the resulting WTRV will disappear after a few frames.
Diffstat (limited to 'src')
-rw-r--r--src/powder.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/powder.c b/src/powder.c
index d595a5a..385ac5d 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;