summaryrefslogtreecommitdiff
path: root/src/elements
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2011-10-28 20:53:21 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2011-10-28 20:53:21 (GMT)
commited75259f54ebe2b463378b00aa09322a576cb9cd (patch)
treef4f32e96df6b1e631178984fb1c35e5b7520a469 /src/elements
parenteab192c6059d68843870634769d779aaf1908d76 (diff)
downloadpowder-ed75259f54ebe2b463378b00aa09322a576cb9cd.zip
powder-ed75259f54ebe2b463378b00aa09322a576cb9cd.tar.gz
Fix H2+O2 Plasma that doesn't make water
Diffstat (limited to 'src/elements')
-rw-r--r--src/elements/pyro.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/elements/pyro.c b/src/elements/pyro.c
index 465d075..dc51e76 100644
--- a/src/elements/pyro.c
+++ b/src/elements/pyro.c
@@ -23,6 +23,15 @@ int update_PYRO(UPDATE_FUNC_ARGS) {
parts[i].life = rand()%20+250;
}
}
+ if(t==PT_PLSM && parts[i].life <=1)
+ {
+ if (parts[i].tmp==3){
+ t = PT_DSTW;
+ part_change_type(i,x,y,t);
+ parts[i].life = 0;
+ parts[i].ctype = PT_FIRE;
+ }
+ }
for (rx=-2; rx<3; rx++)
for (ry=-2; ry<3; ry++)
if (x+rx>=0 && y+ry>0 && x+rx<XRES && y+ry<YRES && (rx || ry))