(svn r11829) -Feature: allow reloading openttd.cfg when starting a new game on a dedicated server. Patch by dihedral.

This commit is contained in:
rubidium
2008-01-13 01:39:22 +00:00
parent d4e6a6bf57
commit 079abbd04b
5 changed files with 13 additions and 0 deletions

View File

@@ -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 */