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.
This commit is contained in:
@@ -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]
|
||||
|
Reference in New Issue
Block a user