Only trigger data update when lobby data is actually changed.

This commit is contained in:
Mr_Goldberg 2020-12-13 00:10:33 -05:00
parent 50f379aa91
commit 147ff1b5da
No known key found for this signature in database
GPG key ID: 8597D87419DEF278

View file

@ -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;
}