From 147ff1b5da8c5780f239e4e136685658a70017cb Mon Sep 17 00:00:00 2001 From: Mr_Goldberg Date: Sun, 13 Dec 2020 00:10:33 -0500 Subject: [PATCH] Only trigger data update when lobby data is actually changed. --- dll/steam_matchmaking.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dll/steam_matchmaking.h b/dll/steam_matchmaking.h index 1fe879c..695d49c 100644 --- a/dll/steam_matchmaking.h +++ b/dll/steam_matchmaking.h @@ -778,7 +778,10 @@ bool SetLobbyData( CSteamID steamIDLobby, const char *pchKey, const char *pchVal if (result->second == std::string(pchValue)) changed = false; (*lobby->mutable_values())[result->first] = pchValue; } - trigger_lobby_dataupdate(steamIDLobby, steamIDLobby, true, 0.01, changed); + + if (changed) + trigger_lobby_dataupdate(steamIDLobby, steamIDLobby, true, 0.005, changed); + return true; }