mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-03-20 22:29:48 +01:00
fix occasional issue where deleting the particle RAYT is detecting would delete the particle it is sparking instead
only happened when unpaused and only if the spark was in a certain state. part_change_type was called with the wrong coordinates, which confused pmap and put the sparked particle on top of pmap in the detected particle for a frame
This commit is contained in:
parent
67132c9925
commit
d2e0986bf6
@ -130,7 +130,7 @@ int Element_RAYT::update(UPDATE_FUNC_ARGS)
|
||||
{
|
||||
parts[ID(r)].life = 4;
|
||||
parts[ID(r)].ctype = TYP(r);
|
||||
sim->part_change_type(ID(r), xCurrent, yCurrent, PT_SPRK);
|
||||
sim->part_change_type(ID(r), x + rx, y + ry, PT_SPRK);
|
||||
break;
|
||||
}
|
||||
// room for more conditions here.
|
||||
|
Loading…
x
Reference in New Issue
Block a user