mirror of
https://github.com/s1lentq/ReGameDLL_CS.git
synced 2025-04-08 18:50:04 +03:00
Update player's HUD after round restart time expires, not before it
This commit is contained in:
parent
35082b5f26
commit
a4d74392f0
@ -1817,6 +1817,11 @@ void EXT_FUNC CHalfLifeMultiplay::__API_HOOK(RestartRound)()
|
||||
if (!UTIL_IsValidPlayer(pPlayer))
|
||||
continue;
|
||||
|
||||
#ifdef REGAMEDLL_FIXES
|
||||
if (!pPlayer->IsBot())
|
||||
pPlayer->ForceClientDllUpdate();
|
||||
#endif
|
||||
|
||||
pPlayer->Reset();
|
||||
}
|
||||
|
||||
@ -3246,19 +3251,6 @@ void CHalfLifeMultiplay::CareerRestart()
|
||||
}
|
||||
|
||||
m_bSkipSpawn = false;
|
||||
|
||||
for (int i = 1; i <= gpGlobals->maxClients; i++)
|
||||
{
|
||||
CBasePlayer *pPlayer = UTIL_PlayerByIndex(i);
|
||||
|
||||
if (!UTIL_IsValidPlayer(pPlayer))
|
||||
continue;
|
||||
|
||||
if (!pPlayer->IsBot())
|
||||
{
|
||||
pPlayer->ForceClientDllUpdate();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
BOOL CHalfLifeMultiplay::IsMultiplayer()
|
||||
|
Loading…
x
Reference in New Issue
Block a user