From e3f139948456a6988a47729476dfccb6b06373cf Mon Sep 17 00:00:00 2001 From: terminx Date: Sun, 8 Sep 2019 13:51:16 +0000 Subject: [PATCH] Fix dumbass problem with A_RadiusDamage() git-svn-id: https://svn.eduke32.com/eduke32@8090 1a8010ca-5511-0410-912e-c29ae57300e0 --- source/duke3d/src/actors.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source/duke3d/src/actors.cpp b/source/duke3d/src/actors.cpp index 3a38aefa8..9a4405b2b 100644 --- a/source/duke3d/src/actors.cpp +++ b/source/duke3d/src/actors.cpp @@ -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); } } }