2
0
mirror of https://github.com/rehlds/rehlds.git synced 2025-03-31 22:59:06 +03:00

Reconnect democlient with new delayed world system cause twice stop demo.

This commit is contained in:
Garey Akhmetshin 2021-02-15 14:57:37 +05:00
parent 1457af4dbe
commit 0178d74f42

View File

@ -1918,9 +1918,15 @@ void Proxy::ReconnectClients()
client->Reconnect();
client = (IClient *)m_Clients.GetNext();
}
#ifdef HLTV_FIXES
// If delay set than m_DemoClient is already stopped demo in AddNextWorld
// Reconnect (Stoping demo) in this case will stop demo and write new one with lost frames
if (m_ClientDelay <= 0 && m_DemoClient.IsActive())
#endif
{
m_DemoClient.Reconnect();
}
}
void Proxy::CMD_OffLineText(char *cmdLine)
{