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:
@@ -1416,6 +1416,7 @@ static bool UpdateServerPassword(int32 p1)
|
||||
_settings_client.network.server_password[0] = '\0';
|
||||
}
|
||||
|
||||
NetworkServerUpdateGameInfo();
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -1430,6 +1431,7 @@ static bool UpdateRconPassword(int32 p1)
|
||||
|
||||
static bool UpdateClientConfigValues(int32 p1)
|
||||
{
|
||||
NetworkServerUpdateGameInfo();
|
||||
if (_network_server) NetworkServerSendConfigUpdate();
|
||||
|
||||
return true;
|
||||
|
Reference in New Issue
Block a user