From f144f1a0bca3a9be046fe3f5e2dfc6d123c05dce Mon Sep 17 00:00:00 2001 From: terminx Date: Sun, 8 Sep 2019 01:01:37 +0000 Subject: [PATCH] Relax SKIPWALLCHECK enforcement with SHRINKSPARK projectile in Duke3D git-svn-id: https://svn.eduke32.com/eduke32@8086 1a8010ca-5511-0410-912e-c29ae57300e0 --- source/duke3d/src/actors.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/source/duke3d/src/actors.cpp b/source/duke3d/src/actors.cpp index fa930d91d..d1878e0a9 100644 --- a/source/duke3d/src/actors.cpp +++ b/source/duke3d/src/actors.cpp @@ -255,7 +255,7 @@ void A_RadiusDamage(int const spriteNum, int const blastRadius, int const dmg1, bfirst_search_init(sectorList, sectorMap, &numSectors, MAXSECTORS, pSprite->sectnum); #ifndef EDUKE32_STANDALONE - if (!FURY && ((pSprite->picnum == RPG && pSprite->xrepeat < 11) || pSprite->picnum == SHRINKSPARK)) + if (!FURY && (pSprite->picnum == RPG && pSprite->xrepeat < 11)) goto SKIPWALLCHECK; #endif @@ -303,7 +303,6 @@ void A_RadiusDamage(int const spriteNum, int const blastRadius, int const dmg1, } SKIPWALLCHECK: - // this is really weird int const randomZOffset = -ZOFFSET2 + (krand()&(ZOFFSET5-1)); for (int sectorCount=0; sectorCount < numSectors; ++sectorCount)