mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 23:02:03 +00:00
Do not target teammates (#187)
This commit is contained in:
parent
a9fcee742d
commit
c2e8cc6607
1 changed files with 4 additions and 0 deletions
|
@ -325,6 +325,8 @@ void UpdateAimVector(PLAYER * pPlayer)
|
|||
pSprite = &sprite[nSprite];
|
||||
if (pSprite == pPSprite)
|
||||
continue;
|
||||
if (!gGameOptions.bFriendlyFire && IsTargetTeammate(pPlayer, pSprite))
|
||||
continue;
|
||||
if (pSprite->hitag&32)
|
||||
continue;
|
||||
if (!(pSprite->hitag&8))
|
||||
|
@ -379,6 +381,8 @@ void UpdateAimVector(PLAYER * pPlayer)
|
|||
for (nSprite = headspritestat[4]; nSprite >= 0; nSprite = nextspritestat[nSprite])
|
||||
{
|
||||
pSprite = &sprite[nSprite];
|
||||
if (!gGameOptions.bFriendlyFire && IsTargetTeammate(pPlayer, pSprite))
|
||||
continue;
|
||||
if (!(pSprite->hitag&8))
|
||||
continue;
|
||||
int x2 = pSprite->x;
|
||||
|
|
Loading…
Reference in a new issue