summaryrefslogtreecommitdiff
path: root/src/elements/elec.cpp
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-04-18 17:33:34 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-04-18 17:33:34 (GMT)
commit4ddf723167aa4d07b16ef1aaac6b4dff16c87a42 (patch)
tree26f0b9ad4281fa8ab45693b099ead3890fcb9bd1 /src/elements/elec.cpp
parentbc4a3355de313d8fe928d2c8abed66108d141efa (diff)
downloadpowder-4ddf723167aa4d07b16ef1aaac6b4dff16c87a42.zip
powder-4ddf723167aa4d07b16ef1aaac6b4dff16c87a42.tar.gz
TPT: prevent ionizing NBLE and burning H2 during fusion 83d4658589
Diffstat (limited to 'src/elements/elec.cpp')
-rw-r--r--src/elements/elec.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/elements/elec.cpp b/src/elements/elec.cpp
index e8ddf5e..317d9f5 100644
--- a/src/elements/elec.cpp
+++ b/src/elements/elec.cpp
@@ -79,7 +79,7 @@ int update_ELEC(UPDATE_FUNC_ARGS) {
sim->kill_part(i);
return 1;
}
- if (sim->ptypes[r&0xFF].properties & PROP_CONDUCTS)
+ if ((sim->ptypes[r&0xFF].properties & PROP_CONDUCTS) && ((r&0xFF)!=PT_H2||parts[i].tmp!=1))
{
sim->create_part(-1, x+rx, y+ry, PT_SPRK);
sim->kill_part(i);