diff --git a/src/p_map.cpp b/src/p_map.cpp index e4830c68f..e3ab370d0 100644 --- a/src/p_map.cpp +++ b/src/p_map.cpp @@ -5245,12 +5245,13 @@ void P_RadiusAttack(AActor *bombspot, AActor *bombsource, int bombdamage, int bo if (bombdistance <= 0) return; fulldamagedistance = clamp(fulldamagedistance, 0, bombdistance - 1); + fixed_t bombdistfix = bombdistance << FRACBITS; double bombdistancefloat = 1.f / (double)(bombdistance - fulldamagedistance); double bombdamagefloat = (double)bombdamage; FPortalGroupArray grouplist; - FMultiBlockThingsIterator it(grouplist, bombspot->X(), bombspot->Y(), bombspot->Z() - (bombdistance<height + ((bombdistance*2)<X(), bombspot->Y(), bombspot->Z() - bombdistfix, bombspot->height + bombdistfix*2, bombdistfix); FMultiBlockThingsIterator::CheckResult cres; if (flags & RADF_SOURCEISSPOT)