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

Fixed double userinfo sending when SetClientKeyValue is used in ClientUserInfoChanged

This commit is contained in:
Artem Golubikhin 2017-02-17 19:14:33 +03:00 committed by GitHub
parent c55837e42a
commit facbbafb8a

View File

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