diff options
author | rubidium42 <rubidium@openttd.org> | 2021-05-05 19:21:12 +0200 |
---|---|---|
committer | rubidium42 <rubidium42@users.noreply.github.com> | 2021-05-05 21:01:23 +0200 |
commit | e7581fd42d9740ca68adfc2ec55edb49d51af237 (patch) | |
tree | 51c7a9c14c282e2105e3bf3d298528488eb896e4 /src/table | |
parent | 72bd62fd705c495d90f08adc964ff8d7f84c6cc1 (diff) | |
download | openttd-e7581fd42d9740ca68adfc2ec55edb49d51af237.tar.xz |
Change: [Network] Update server's NetworkServerGameInfo only when needed
Split the updating in a "static" version that only needs to be called when a new map is loaded or some settings are changed, and a "dynamic" version that updates everything that changes regularly such as the current game date or the number of spectators.
Diffstat (limited to 'src/table')
-rw-r--r-- | src/table/settings.ini | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/table/settings.ini b/src/table/settings.ini index 4e64bd032..d12f58236 100644 --- a/src/table/settings.ini +++ b/src/table/settings.ini @@ -3962,6 +3962,7 @@ type = SLE_STRB flags = SLF_NOT_IN_SAVE | SLF_NO_NETWORK_SYNC guiflags = SGF_NETWORK_ONLY def = nullptr +proc = UpdateClientConfigValues cat = SC_BASIC [SDTC_STR] @@ -4029,6 +4030,7 @@ guiflags = SGF_NETWORK_ONLY def = 25 min = 2 max = MAX_CLIENTS +proc = UpdateClientConfigValues cat = SC_BASIC [SDTC_VAR] |