mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-15 08:51:24 +00:00
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:
parent
91d9883845
commit
e353d38665
1 changed files with 2 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue