From 1140f915dc30d9e83c868d743f05e2df5f6022b0 Mon Sep 17 00:00:00 2001 From: s1lentq Date: Sat, 12 Dec 2015 18:06:30 +0600 Subject: [PATCH] Fix: hang the players on a scoreboard after changelevel map --- rehlds/engine/sv_main.cpp | 10 ++++++---- rehlds/engine/sys_dll.cpp | 2 +- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/rehlds/engine/sv_main.cpp b/rehlds/engine/sv_main.cpp index cf87ebb..ff7a094 100644 --- a/rehlds/engine/sv_main.cpp +++ b/rehlds/engine/sv_main.cpp @@ -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); diff --git a/rehlds/engine/sys_dll.cpp b/rehlds/engine/sys_dll.cpp index e48603e..8ca5c54 100644 --- a/rehlds/engine/sys_dll.cpp +++ b/rehlds/engine/sys_dll.cpp @@ -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); }