From 98b13cebbdef4a4fe37522d82313631387464681 Mon Sep 17 00:00:00 2001 From: peter1138 Date: Thu, 19 Jan 2006 21:29:54 +0000 Subject: (svn r3411) - Fix: When changing the server password via the console, actually set the password as well as flag whether it is required. --- console_cmds.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/console_cmds.c b/console_cmds.c index b521ac902..484925edc 100644 --- a/console_cmds.c +++ b/console_cmds.c @@ -1117,8 +1117,10 @@ DEF_CONSOLE_HOOK(ConHookServerPW) if (strncmp(_network_server_password, "*", NETWORK_PASSWORD_LENGTH) == 0) { _network_server_password[0] = '\0'; _network_game_info.use_password = 0; - } else + } else { + ttd_strlcpy(_network_game_info.server_password, _network_server_password, sizeof(_network_server_password)); _network_game_info.use_password = 1; + } return true; } -- cgit v1.2.3-70-g09d2