From 35274783a9807ada56e20df4027d29867e415e41 Mon Sep 17 00:00:00 2001 From: terminx Date: Tue, 17 Sep 2019 03:20:00 +0000 Subject: [PATCH] Eliminate another goofy holdover from the old version of A_RadiusDamage() git-svn-id: https://svn.eduke32.com/eduke32@8099 1a8010ca-5511-0410-912e-c29ae57300e0 --- source/duke3d/src/actors.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/source/duke3d/src/actors.cpp b/source/duke3d/src/actors.cpp index 9a4405b2b..023b6b709 100644 --- a/source/duke3d/src/actors.cpp +++ b/source/duke3d/src/actors.cpp @@ -290,15 +290,14 @@ void A_RadiusDamage(int const spriteNum, int const blastRadius, int const dmg1, if (getwalldist(pSprite->pos.vec2, w, &closest) >= blastRadius) continue; - int const nextSector = pWall->nextsector; - int const damageSector = (nextSector >= 0) ? wall[pWall->nextwall].nextsector : sectorNum; - vec3_t const vect = { closest.x, closest.y, pSprite->z }; - if (cansee(vect.x, vect.y, vect.z, damageSector, pSprite->x, pSprite->y, pSprite->z, pSprite->sectnum)) + if (cansee(vect.x, vect.y, vect.z, sectorNum, pSprite->x, pSprite->y, pSprite->z, pSprite->sectnum)) { A_DamageWall_Internal(spriteNum, w, vect, pSprite->picnum); + int const nextSector = pWall->nextsector; + if (nextSector >= 0) bfirst_search_try(sectorList, sectorMap, &numSectors, nextSector);