diff --git a/src/simulation/Simulation.cpp b/src/simulation/Simulation.cpp index 17bbc9bc2..d0b42bcc2 100644 --- a/src/simulation/Simulation.cpp +++ b/src/simulation/Simulation.cpp @@ -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;