From 888e0f2065cf15dabf811a4a657fa10cd7789a90 Mon Sep 17 00:00:00 2001 From: jacob1 Date: Tue, 20 Dec 2022 23:59:08 -0500 Subject: [PATCH] Remove pmap hack in BOMB.cpp --- src/simulation/elements/BOMB.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/simulation/elements/BOMB.cpp b/src/simulation/elements/BOMB.cpp index 3b6481990..6f3409813 100644 --- a/src/simulation/elements/BOMB.cpp +++ b/src/simulation/elements/BOMB.cpp @@ -64,7 +64,7 @@ static int update(UPDATE_FUNC_ARGS) { int rad = 8, nt; int nxi, nxj; - pmap[y][x] = 0; + sim->kill_part(i); for (nxj=-rad; nxj<=rad; nxj++) for (nxi=-rad; nxi<=rad; nxi++) if ((pow((float)nxi,2))/(pow((float)rad,2))+(pow((float)nxj,2))/(pow((float)rad,2))<=1) @@ -103,7 +103,6 @@ static int update(UPDATE_FUNC_ARGS) parts[nb].vy = float(RNG::Ref().between(-20, 20)); } } - sim->kill_part(i); return 1; } }