mirror of
https://github.com/s1lentq/ReGameDLL_CS.git
synced 2024-12-27 07:05:38 +03:00
CHalfLifeMultiplay::SwapAllPlayers: Ignore HLTV
This commit is contained in:
parent
15328fd764
commit
aae507c9f5
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user