diff options
author | rubidium <rubidium@openttd.org> | 2008-01-13 01:39:22 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-01-13 01:39:22 +0000 |
commit | 079abbd04be8e997a0d09eb89ad03884a4e12d00 (patch) | |
tree | 991113cabdf8f73af8334d2f01990b558f897f8b /src/console_cmds.cpp | |
parent | d4e6a6bf57216b39745b61971141e088e15e2d0d (diff) | |
download | openttd-079abbd04be8e997a0d09eb89ad03884a4e12d00.tar.xz |
(svn r11829) -Feature: allow reloading openttd.cfg when starting a new game on a dedicated server. Patch by dihedral.
Diffstat (limited to 'src/console_cmds.cpp')
-rw-r--r-- | src/console_cmds.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/console_cmds.cpp b/src/console_cmds.cpp index 516bcad1a..c69870dd5 100644 --- a/src/console_cmds.cpp +++ b/src/console_cmds.cpp @@ -1652,6 +1652,8 @@ void IConsoleStdLibRegister() IConsoleVarRegister("min_players", &_network_min_players, ICONSOLE_VAR_BYTE, "Automatically pause the game when the number of active players passes below the given amount"); IConsoleVarHookAdd("min_players", ICONSOLE_HOOK_ACCESS, ConHookServerOnly); IConsoleVarHookAdd("min_players", ICONSOLE_HOOK_POST_ACTION, ConHookCheckMinPlayers); + IConsoleVarRegister("reload_cfg", &_network_reload_cfg, ICONSOLE_VAR_BOOLEAN, "reload the entire config file between the end of this game, and starting the next new game - dedicated servers"); + IConsoleVarHookAdd("reload_cfg", ICONSOLE_HOOK_ACCESS, ConHookServerOnly); #endif /* ENABLE_NETWORK */ |