summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCracker64 <cracker642@gmail.com>2011-01-15 02:23:23 (GMT)
committer Cracker64 <cracker642@gmail.com>2011-01-15 02:23:23 (GMT)
commit2d79fa5cfe104e6067818f13e3486ca45fe23815 (patch)
tree8a9f632a92236d18f7ea509e2d4c930da2e6c88e /src
parente33fb40e2d670af84c8b27c69cc170c2213bcd33 (diff)
downloadpowder-2d79fa5cfe104e6067818f13e3486ca45fe23815.zip
powder-2d79fa5cfe104e6067818f13e3486ca45fe23815.tar.gz
fix photon causing infinite sparks
Diffstat (limited to 'src')
-rw-r--r--src/powder.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/powder.c b/src/powder.c
index e8e3873..6b25eb4 100644
--- a/src/powder.c
+++ b/src/powder.c
@@ -34,7 +34,9 @@ static int pn_junction_sprk(int x, int y, int pt)
r >>= 8;
if(parts[r].type != pt)
return 0;
-
+ if(parts[r].life != 0)
+ return 0;
+
parts[r].ctype = pt;
parts[r].type = PT_SPRK;
parts[r].life = 4;