Duke3d: improve WT FLAMETHROWERFLAME enemy type check

I don't expect anyone to make an EDuke32-compatible WT mod where other enemies shoot FLAMETHROWERFLAME, but if they do the behavior will at least be consistent across enemy types.
This commit is contained in:
Richard C. Gobeille 2020-05-30 04:01:06 -07:00 committed by Christoph Oelckers
parent 91d9883845
commit e353d38665

View file

@ -116,9 +116,8 @@ void A_RadiusDamageObject_Internal(int const spriteNum, int const otherSprite, i
#ifndef EDUKE32_STANDALONE
if (WORLDTOUR && pSprite->picnum == FLAMETHROWERFLAME)
{
if (sprite[pSprite->owner].picnum == FIREFLY && pOther->picnum == FIREFLY)
return;
if (sprite[pSprite->owner].picnum == BOSS5 && pOther->picnum == BOSS5)
// enemies in WT don't damage other enemies of the same type with FLAMETHROWERFLAME
if (sprite[pSprite->owner].picnum == pOther->picnum && pOther->picnum != APLAYER)
return;
}
#endif