(svn r11829) -Feature: allow reloading openttd.cfg when starting a new game on a dedicated server. Patch by dihedral.
This commit is contained in:
@@ -843,6 +843,13 @@ void SwitchMode(int new_mode)
|
||||
if (_is_network_server) {
|
||||
/* But not if we are going to the menu */
|
||||
if (new_mode != SM_MENU) {
|
||||
/* check if we should reload the config */
|
||||
if (_network_reload_cfg) {
|
||||
LoadFromConfig();
|
||||
_patches = _patches_newgame;
|
||||
_opt = _opt_newgame;
|
||||
ResetGRFConfig(false);
|
||||
}
|
||||
NetworkServerStart();
|
||||
} else {
|
||||
/* This client no longer wants to be a network-server */
|
||||
|
Reference in New Issue
Block a user