mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-14 00:21:38 +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];
|
pSprite = &sprite[nSprite];
|
||||||
if (pSprite == pPSprite)
|
if (pSprite == pPSprite)
|
||||||
continue;
|
continue;
|
||||||
|
if (!gGameOptions.bFriendlyFire && IsTargetTeammate(pPlayer, pSprite))
|
||||||
|
continue;
|
||||||
if (pSprite->hitag&32)
|
if (pSprite->hitag&32)
|
||||||
continue;
|
continue;
|
||||||
if (!(pSprite->hitag&8))
|
if (!(pSprite->hitag&8))
|
||||||
|
@ -379,6 +381,8 @@ void UpdateAimVector(PLAYER * pPlayer)
|
||||||
for (nSprite = headspritestat[4]; nSprite >= 0; nSprite = nextspritestat[nSprite])
|
for (nSprite = headspritestat[4]; nSprite >= 0; nSprite = nextspritestat[nSprite])
|
||||||
{
|
{
|
||||||
pSprite = &sprite[nSprite];
|
pSprite = &sprite[nSprite];
|
||||||
|
if (!gGameOptions.bFriendlyFire && IsTargetTeammate(pPlayer, pSprite))
|
||||||
|
continue;
|
||||||
if (!(pSprite->hitag&8))
|
if (!(pSprite->hitag&8))
|
||||||
continue;
|
continue;
|
||||||
int x2 = pSprite->x;
|
int x2 = pSprite->x;
|
||||||
|
|
Loading…
Reference in a new issue