2
0
mirror of https://github.com/rehlds/rehlds.git synced 2025-02-06 02:30:44 +03:00

Merge pull request #364 from WPMGPRoSToTeMa/patch-7

Fixed double userinfo sending when SetClientKeyValue is used in ClientUserInfoChanged.
This commit is contained in:
Lev 2017-02-18 17:08:17 +05:00 committed by GitHub
commit 0cf0746afb

View File

@ -4722,10 +4722,16 @@ qboolean SV_SendClientDatagram(client_t *client)
void SV_UpdateUserInfo(client_t *client)
{
#ifndef REHLDS_FIXES
client->sendinfo = FALSE;
client->sendinfo_time = realtime + 1.0;
#endif
SV_ExtractFromUserinfo(client);
SV_SendFullClientUpdateForAll(client);
#ifdef REHLDS_FIXES
client->sendinfo = FALSE;
client->sendinfo_time = realtime + 1.0;
#endif
}
void SV_UpdateToReliableMessages(void)