diff --git a/src/p_map.cpp b/src/p_map.cpp index 754f4633b..6ebfef5b2 100644 --- a/src/p_map.cpp +++ b/src/p_map.cpp @@ -5866,6 +5866,7 @@ int P_RadiusAttack(AActor *bombspot, AActor *bombsource, int bombdamage, int bom P_GeometryRadiusAttack(bombspot, bombsource, bombdamage, bombdistance, bombmod, fulldamagedistance); + TArray targets; int count = 0; while ((it.Next(&cres))) { @@ -5896,6 +5897,11 @@ int P_RadiusAttack(AActor *bombspot, AActor *bombsource, int bombdamage, int bom ) ) continue; + targets.Push(thing); + } + + for (AActor *thing : targets) + { // Barrels always use the original code, since this makes // them far too "active." BossBrains also use the old code // because some user levels require they have a height of 16,