Update player's HUD after round restart time expires, not before it

This commit is contained in:
s1lentq 2025-04-04 02:49:40 +07:00
parent 35082b5f26
commit a4d74392f0

View File

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