mirror of
https://gitlab.com/Mr_Goldberg/goldberg_emulator.git
synced 2024-11-27 06:08:14 +01:00
Only trigger data update when lobby data is actually changed.
This commit is contained in:
parent
50f379aa91
commit
147ff1b5da
1 changed files with 4 additions and 1 deletions
|
@ -778,7 +778,10 @@ bool SetLobbyData( CSteamID steamIDLobby, const char *pchKey, const char *pchVal
|
||||||
if (result->second == std::string(pchValue)) changed = false;
|
if (result->second == std::string(pchValue)) changed = false;
|
||||||
(*lobby->mutable_values())[result->first] = pchValue;
|
(*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;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue