diff options
author | tron <tron@openttd.org> | 2005-09-26 08:11:48 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-09-26 08:11:48 +0000 |
commit | 9e85e49ca4d592ab63cd5e30f24b1851c96fca30 (patch) | |
tree | 45aaf23b4bd6cb0c604061a746ffc371e075e297 | |
parent | 9d1d64daff1a020a0d6f4aa8dd2f115f6c45dce5 (diff) | |
download | openttd-9e85e49ca4d592ab63cd5e30f24b1851c96fca30.tar.xz |
(svn r2987) -Fix: restart_game_date is an UINT16, not a BYTE. Now setting the game restart year via the console should work (Debolaz)
-rw-r--r-- | console_cmds.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/console_cmds.c b/console_cmds.c index 107b126a7..93253b2e3 100644 --- a/console_cmds.c +++ b/console_cmds.c @@ -1399,7 +1399,7 @@ void IConsoleStdLibRegister(void) IConsoleVarRegister("autoclean_unprotected", &_network_autoclean_unprotected, ICONSOLE_VAR_BYTE, "Automatically shut down inactive companies after the given amount of months"); IConsoleVarHookAdd("autoclean_unprotected", ICONSOLE_HOOK_ACCESS, ConHookServerOnly); - IConsoleVarRegister("restart_game_date", &_network_restart_game_date, ICONSOLE_VAR_BYTE, "Auto-restart the server when Jan 1st of the set year is reached. Use '0' to disable this"); + IConsoleVarRegister("restart_game_date", &_network_restart_game_date, ICONSOLE_VAR_UINT16, "Auto-restart the server when Jan 1st of the set year is reached. Use '0' to disable this"); IConsoleVarHookAdd("restart_game_date", ICONSOLE_HOOK_ACCESS, ConHookServerOnly); #endif /* ENABLE_NETWORK */ |