Changeset - r2461:4dce546e279e
[Not reviewed]
master
0 1 0
tron - 19 years ago 2005-09-26 08:11:48
tron@openttd.org
(svn r2987) -Fix: restart_game_date is an UINT16, not a BYTE. Now setting the game restart year via the console should work (Debolaz)
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
console_cmds.c
Show inline comments
 
@@ -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 */
0 comments (0 inline, 0 general)