From facbbafb8a9acf446088e20fe5c7ec76a1545d97 Mon Sep 17 00:00:00 2001 From: Artem Golubikhin Date: Fri, 17 Feb 2017 19:14:33 +0300 Subject: [PATCH] Fixed double userinfo sending when SetClientKeyValue is used in ClientUserInfoChanged --- rehlds/engine/sv_main.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/rehlds/engine/sv_main.cpp b/rehlds/engine/sv_main.cpp index bb4a138..ee231a5 100644 --- a/rehlds/engine/sv_main.cpp +++ b/rehlds/engine/sv_main.cpp @@ -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)