From 2d79fa5cfe104e6067818f13e3486ca45fe23815 Mon Sep 17 00:00:00 2001 From: Cracker64 Date: Fri, 14 Jan 2011 21:23:23 -0500 Subject: [PATCH] fix photon causing infinite sparks --- src/powder.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/powder.c b/src/powder.c index e8e3873df..6b25eb4c5 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;