From 16aa349e77d52746546474fcd695602dd29e6549 Mon Sep 17 00:00:00 2001 From: Bryan Hoyle Date: Tue, 16 Aug 2011 16:12:43 -0400 Subject: [PATCH] SPRK now makes electrons in WIRE --- src/powder.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/powder.c b/src/powder.c index 37690f9fa..85c31e110 100644 --- a/src/powder.c +++ b/src/powder.c @@ -712,6 +712,9 @@ inline int create_part(int p, int x, int y, int tv)//the function for creating a if (t==PT_SPRK) { + if((pmap[y][x]&0xFF)==PT_WIRE){ + parts[pmap[y][x]>>8].ctype=PT_DUST; + } if ((pmap[y][x]>>8)>=NPART || !((pmap[y][x]&0xFF)==PT_INST||(ptypes[pmap[y][x]&0xFF].properties&PROP_CONDUCTS))) return -1; if (parts[pmap[y][x]>>8].life!=0)