Commit 0178c7c9 authored by Richard Gobeille's avatar Richard Gobeille
Browse files

Duke3d: fix oversight in current A_RadiusDamage() implementation that allowed...

Duke3d: fix oversight in current A_RadiusDamage() implementation that allowed a sprite to inflict radius damage on itself
parent a3426ec1
......@@ -381,9 +381,9 @@ wallsfinished:
while (damageSprite >= 0)
{
int const nextSprite = nextspritesect[damageSprite];
auto pDamage = &sprite[damageSprite];
auto pDamage = (uspriteptr_t)&sprite[damageSprite];
if (bitmap_test(g_radiusDmgStatnums, pDamage->statnum))
if (pDamage != pSprite && bitmap_test(g_radiusDmgStatnums, pDamage->statnum))
{
int spriteDist = dist(pSprite, pDamage);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment