mirror of
https://github.com/rehlds/rehlds.git
synced 2025-01-04 02:55:50 +03:00
Merge pull request #103 from s1lentq/master
Fix: hang players on a scoreboard after changelevel
This commit is contained in:
commit
adf214c433
@ -4653,11 +4653,11 @@ void SV_UpdateToReliableMessages(void)
|
|||||||
{
|
{
|
||||||
client = &g_psvs.clients[i];
|
client = &g_psvs.clients[i];
|
||||||
|
|
||||||
if (!client->fakeclient && client->active)
|
//Fix for the "server failed to transmit file 'AY&SY..." bug
|
||||||
{
|
//https://github.com/dreamstalker/rehlds/issues/38
|
||||||
//Fix for the "server failed to transmit file 'AY&SY..." bug
|
|
||||||
//https://github.com/dreamstalker/rehlds/issues/38
|
|
||||||
#ifdef REHLDS_FIXES
|
#ifdef REHLDS_FIXES
|
||||||
|
if (!client->fakeclient && (client->active || client->connected))
|
||||||
|
{
|
||||||
if (!svReliableCompressed && g_psv.reliable_datagram.cursize + client->netchan.message.cursize < client->netchan.message.maxsize)
|
if (!svReliableCompressed && g_psv.reliable_datagram.cursize + client->netchan.message.cursize < client->netchan.message.maxsize)
|
||||||
{
|
{
|
||||||
SZ_Write(&client->netchan.message, g_psv.reliable_datagram.data, g_psv.reliable_datagram.cursize);
|
SZ_Write(&client->netchan.message, g_psv.reliable_datagram.data, g_psv.reliable_datagram.cursize);
|
||||||
@ -4668,6 +4668,8 @@ void SV_UpdateToReliableMessages(void)
|
|||||||
svReliableCompressed = true;
|
svReliableCompressed = true;
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
|
if (!client->fakeclient && client->active)
|
||||||
|
{
|
||||||
if (g_psv.reliable_datagram.cursize + client->netchan.message.cursize < client->netchan.message.maxsize)
|
if (g_psv.reliable_datagram.cursize + client->netchan.message.cursize < client->netchan.message.maxsize)
|
||||||
{
|
{
|
||||||
SZ_Write(&client->netchan.message, g_psv.reliable_datagram.data, g_psv.reliable_datagram.cursize);
|
SZ_Write(&client->netchan.message, g_psv.reliable_datagram.data, g_psv.reliable_datagram.cursize);
|
||||||
|
@ -1187,7 +1187,7 @@ void EXT_FUNC AlertMessage(ALERT_TYPE atype, const char *szFmt, ...)
|
|||||||
}
|
}
|
||||||
int iLen = Q_strlen(szOut);
|
int iLen = Q_strlen(szOut);
|
||||||
Q_vsnprintf(&szOut[iLen], sizeof(szOut) - iLen, szFmt, argptr);
|
Q_vsnprintf(&szOut[iLen], sizeof(szOut) - iLen, szFmt, argptr);
|
||||||
Con_Printf("%s\n", szOut);
|
Con_Printf("%s", szOut);
|
||||||
}
|
}
|
||||||
va_end(argptr);
|
va_end(argptr);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user