Skip to content

Commit

Permalink
CHalfLifeMultiplay::SwapAllPlayers: Ignore HLTV
Browse files Browse the repository at this point in the history
  • Loading branch information
s1lentq committed Jan 4, 2021
1 parent 15328fd commit aae507c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions regamedll/dlls/multiplay_gamerules.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1502,6 +1502,12 @@ void CHalfLifeMultiplay::SwapAllPlayers()
if (pEntity->IsDormant())
continue;

#ifdef REGAMEDLL_FIXES
// ignore HLTV
if (pEntity->IsProxy())
continue;
#endif

CBasePlayer *pPlayer = GetClassPtr<CCSPlayer>((CBasePlayer *)pEntity->pev);
pPlayer->SwitchTeam();
}
Expand Down

0 comments on commit aae507c

Please sign in to comment.