Fix hitradius performance when affecting tons of walls

git-svn-id: https://svn.eduke32.com/eduke32@6793 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2018-04-02 22:00:17 +00:00
parent bb8ceefa95
commit aba97eb6a9

View file

@ -156,7 +156,7 @@ void A_RadiusDamage(int spriteNum, int blastRadius, int dmg1, int dmg2, int dmg3
{
if (G_WallSpriteDist(pWall, pSprite) < blastRadius)
{
int16_t damageSector = -1;
int16_t damageSector = pSprite->sectnum;
int const nextSector = pWall->nextsector;
if (nextSector >= 0)