Merge pull request #280 from WPMGPRoSToTeMa/BroadcastNetBuffersRemoving

Fixed sending messages to fakeclients (fixed #279)
This commit is contained in:
s1lentq 2016-12-16 18:28:03 +07:00 committed by GitHub
commit 1f96d176e7
2 changed files with 8 additions and 0 deletions

View File

@ -2642,6 +2642,8 @@ void Host_TogglePause_f(void)
#ifdef REHLDS_FIXES
for (int i = 0; i < g_psvs.maxclients; i++)
{
if (g_psvs.clients[i].fakeclient)
continue;
if (!g_psvs.clients[i].connected)
continue;
@ -2671,6 +2673,8 @@ void Host_Pause_f(void)
#ifdef REHLDS_FIXES
for (int i = 0; i < g_psvs.maxclients; i++)
{
if (g_psvs.clients[i].fakeclient)
continue;
if (!g_psvs.clients[i].connected)
continue;
@ -2700,6 +2704,8 @@ void Host_Unpause_f(void)
#ifdef REHLDS_FIXES
for (int i = 0; i < g_psvs.maxclients; i++)
{
if (g_psvs.clients[i].fakeclient)
continue;
if (!g_psvs.clients[i].connected)
continue;

View File

@ -3756,6 +3756,8 @@ void SV_SendFullClientUpdateForAll(client_t *client)
for (int i = 0; i < g_psvs.maxclients; i++)
{
host_client = &g_psvs.clients[i];
if (host_client->fakeclient)
continue;
if (!host_client->connected)
continue;