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

Fixed sending messages to fakeclients (fixed #279)

This commit is contained in:
WPMGPRoSToTeMa 2016-12-16 07:17:03 +03:00
parent 076219bcd1
commit ab5e2aa6ac
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;