mirror of
https://github.com/s1lentq/ReGameDLL_CS.git
synced 2024-12-27 23:25:41 +03:00
Fixed typo when checking a teammate
This commit is contained in:
parent
ac07e89269
commit
3a0970a1cd
@ -5342,8 +5342,8 @@ void EXT_FUNC CHalfLifeMultiplay::__API_HOOK(SendDeathMessage)(CBaseEntity *pKil
|
||||
// Send the victim's death position only
|
||||
// 1. if it is not a free for all mode
|
||||
// 2. if the attacker is a player and they are not teammates
|
||||
if (IsFreeForAll() || !pKillerPlayer || PlayerRelationship(pKillerPlayer, pVictim) != GR_TEAMMATE)
|
||||
iDeathMessageFlags &= ~PLAYERDEATH_POSITION;
|
||||
if (IsFreeForAll() || !pKillerPlayer || PlayerRelationship(pKillerPlayer, pVictim) == GR_TEAMMATE)
|
||||
iDeathMessageFlags &= ~PLAYERDEATH_POSITION; // do not send a position
|
||||
|
||||
if (iDeathMessageFlags > 0)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user