SPRK now makes electrons in WIRE
This commit is contained in:
parent
0cbf66a495
commit
16aa349e77
@ -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)
|
||||
|
Reference in New Issue
Block a user