Fix dumbass problem with A_RadiusDamage()

git-svn-id: https://svn.eduke32.com/eduke32@8090 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2019-09-08 13:51:16 +00:00 committed by Christoph Oelckers
parent 8aa8b7bef6
commit e3f1399484

View file

@ -299,10 +299,11 @@ void A_RadiusDamage(int const spriteNum, int const blastRadius, int const dmg1,
{
A_DamageWall_Internal(spriteNum, w, vect, pSprite->picnum);
if (nextSector >= 0)
bfirst_search_try(sectorList, sectorMap, &numSectors, nextSector);
if (numSectors == MAXDAMAGESECTORS)
goto SKIPWALLCHECK;
bfirst_search_try(sectorList, sectorMap, &numSectors, damageSector);
}
}
}