summaryrefslogtreecommitdiff
path: root/src/elements/pyro.c
diff options
context:
space:
mode:
authorJacob1 <jfu614@gmail.com>2012-03-14 23:30:07 (GMT)
committer Jacob1 <jfu614@gmail.com>2012-03-14 23:30:07 (GMT)
commit446f773542c2a025a86b0d022c086efbdb86474d (patch)
treefa40f7539c244017b7730a00fbebc736a6c6970b /src/elements/pyro.c
parent4f176ba7c39e31a3d98f969cc4bc4d50221085a3 (diff)
downloadpowder-446f773542c2a025a86b0d022c086efbdb86474d.zip
powder-446f773542c2a025a86b0d022c086efbdb86474d.tar.gz
Fusion, step 1
Diffstat (limited to 'src/elements/pyro.c')
-rw-r--r--src/elements/pyro.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/elements/pyro.c b/src/elements/pyro.c
index dc51e76..aa386eb 100644
--- a/src/elements/pyro.c
+++ b/src/elements/pyro.c
@@ -46,6 +46,7 @@ int update_PYRO(UPDATE_FUNC_ARGS) {
(t!=PT_SPRK || (rt!=PT_RBDM && rt!=PT_LRBD && rt!=PT_INSL)) &&
(t!=PT_PHOT || rt!=PT_INSL) &&
(rt!=PT_SPNG || parts[r>>8].life==0) &&
+ (rt!=PT_H2 || parts[r>>8].tmp!=1) &&
ptypes[rt].flammable && (ptypes[rt].flammable + (int)(pv[(y+ry)/CELL][(x+rx)/CELL]*10.0f))>(rand()%1000))
{
part_change_type(r>>8,x+rx,y+ry,PT_FIRE);