CHalfLifeMultiplay::SwapAllPlayers: Ignore HLTV

This commit is contained in:
s1lentq 2021-01-04 22:26:35 +07:00
parent 15328fd764
commit aae507c9f5

View File

@ -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();
}