mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-09-03 04:52:35 +02:00
Fix EMP radius when damaging things around SPRK
This commit is contained in:
@@ -126,7 +126,7 @@ void Element_EMP_Trigger(Simulation *sim, int triggerCount)
|
|||||||
sim->part_change_type(r, rx, ry, PT_NTCT);
|
sim->part_change_type(r, rx, ry, PT_NTCT);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
for (int nx =-2; nx <= 3; nx++)
|
for (int nx =-2; nx <= 2; nx++)
|
||||||
for (int ny =-2; ny <= 2; ny++)
|
for (int ny =-2; ny <= 2; ny++)
|
||||||
if (rx+nx>=0 && ry+ny>=0 && rx+nx<XRES && ry+ny<YRES && (rx || ry))
|
if (rx+nx>=0 && ry+ny>=0 && rx+nx<XRES && ry+ny<YRES && (rx || ry))
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user