use kill_part when creating a new particle over an index, fixes STKM not respawning after CONV and probably other stuff too
This commit is contained in:
parent
dc0e47ac00
commit
e1440f48f6
@ -2846,12 +2846,7 @@ int Simulation::create_part(int p, int x, int y, int tv)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
int oldX = (int)(parts[p].x+0.5f);
|
kill_part(p);
|
||||||
int oldY = (int)(parts[p].y+0.5f);
|
|
||||||
if ((pmap[oldY][oldX]>>8)==p)
|
|
||||||
pmap[oldY][oldX] = 0;
|
|
||||||
if ((photons[oldY][oldX]>>8)==p)
|
|
||||||
photons[oldY][oldX] = 0;
|
|
||||||
i = p;
|
i = p;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user