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:
parent
076219bcd1
commit
ab5e2aa6ac
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user