Skip to content

Commit aae507c

Browse files
committed
CHalfLifeMultiplay::SwapAllPlayers: Ignore HLTV
1 parent 15328fd commit aae507c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

regamedll/dlls/multiplay_gamerules.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1502,6 +1502,12 @@ void CHalfLifeMultiplay::SwapAllPlayers()
15021502
if (pEntity->IsDormant())
15031503
continue;
15041504

1505+
#ifdef REGAMEDLL_FIXES
1506+
// ignore HLTV
1507+
if (pEntity->IsProxy())
1508+
continue;
1509+
#endif
1510+
15051511
CBasePlayer *pPlayer = GetClassPtr<CCSPlayer>((CBasePlayer *)pEntity->pev);
15061512
pPlayer->SwitchTeam();
15071513
}

0 commit comments

Comments
 (0)