summaryrefslogtreecommitdiff
path: root/src/elements/elec.c
diff options
context:
space:
mode:
authorJacob1 <jfu614@gmail.com>2012-03-14 23:33:10 (GMT)
committer Jacob1 <jfu614@gmail.com>2012-03-14 23:33:10 (GMT)
commit83d4658589d366a8a708d64c912c128bcebb9d1c (patch)
tree487f6e796b397a185fe8abc927a218d247e6d33e /src/elements/elec.c
parent446f773542c2a025a86b0d022c086efbdb86474d (diff)
downloadpowder-83d4658589d366a8a708d64c912c128bcebb9d1c.zip
powder-83d4658589d366a8a708d64c912c128bcebb9d1c.tar.gz
prevent ionizing NBLE and burning H2 during fusion
Diffstat (limited to 'src/elements/elec.c')
-rw-r--r--src/elements/elec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/elements/elec.c b/src/elements/elec.c
index 6acbbab..a5c254f 100644
--- a/src/elements/elec.c
+++ b/src/elements/elec.c
@@ -79,7 +79,7 @@ int update_ELEC(UPDATE_FUNC_ARGS) {
kill_part(i);
return 1;
}
- if (ptypes[r&0xFF].properties & PROP_CONDUCTS)
+ if (ptypes[r&0xFF].properties & PROP_CONDUCTS && ((r&0xFF)!=PT_H2||parts[i].tmp!=1))
{
create_part(-1, x+rx, y+ry, PT_SPRK);
kill_part(i);