2
0
mirror of https://github.com/rehlds/rehlds.git synced 2025-01-01 01:25:38 +03:00

Merge pull request #103 from s1lentq/master

Fix: hang players on a scoreboard after changelevel
This commit is contained in:
theAsmodai 2015-12-12 20:14:50 +03:00
commit adf214c433
2 changed files with 7 additions and 5 deletions

View File

@ -4653,11 +4653,11 @@ void SV_UpdateToReliableMessages(void)
{
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
if (!client->fakeclient && (client->active || client->connected))
{
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);
@ -4668,6 +4668,8 @@ void SV_UpdateToReliableMessages(void)
svReliableCompressed = true;
}
#else
if (!client->fakeclient && client->active)
{
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);

View File

@ -1187,7 +1187,7 @@ void EXT_FUNC AlertMessage(ALERT_TYPE atype, const char *szFmt, ...)
}
int iLen = Q_strlen(szOut);
Q_vsnprintf(&szOut[iLen], sizeof(szOut) - iLen, szFmt, argptr);
Con_Printf("%s\n", szOut);
Con_Printf("%s", szOut);
}
va_end(argptr);
}