summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBryan Hoyle <starfoxprime@gmail.com>2011-08-16 20:12:43 (GMT)
committer Bryan Hoyle <starfoxprime@gmail.com>2011-08-16 20:12:43 (GMT)
commit16aa349e77d52746546474fcd695602dd29e6549 (patch)
treefdc3d194f2410c83c5270a3c8c30f979fbb157d8 /src
parent0cbf66a4954c3e5e76af5c6bf391e84332fa14bf (diff)
downloadpowder-16aa349e77d52746546474fcd695602dd29e6549.zip
powder-16aa349e77d52746546474fcd695602dd29e6549.tar.gz
SPRK now makes electrons in WIRE
Diffstat (limited to 'src')
-rw-r--r--src/powder.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/powder.c b/src/powder.c
index 37690f9..85c31e1 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)