TPT: Allow INST to be sparked directly with the brush 8de602d467
This commit is contained in:
parent
aa156fb933
commit
55c870c518
@ -2544,6 +2544,11 @@ int Simulation::create_part(int p, int x, int y, int tv)//the function for creat
|
||||
return -1;
|
||||
if (parts[pmap[y][x]>>8].life!=0)
|
||||
return -1;
|
||||
if (p==-2 && (pmap[y][x]&0xFF)==PT_INST)
|
||||
{
|
||||
FloodINST(x, y, PT_SPRK, PT_INST);
|
||||
return pmap[y][x]>>8;
|
||||
}
|
||||
parts[pmap[y][x]>>8].type = PT_SPRK;
|
||||
parts[pmap[y][x]>>8].life = 4;
|
||||
parts[pmap[y][x]>>8].ctype = pmap[y][x]&0xFF;
|
||||
|
Loading…
Reference in New Issue
Block a user