Skip to content

Commit

Permalink
Fixed typo when checking a teammate
Browse files Browse the repository at this point in the history
  • Loading branch information
s1lentq committed Oct 5, 2023
1 parent ac07e89 commit 3a0970a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions regamedll/dlls/multiplay_gamerules.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 3a0970a

Please sign in to comment.