changeset 2863:1cbe7937cc07 draft

(svn r3411) - Fix: When changing the server password via the console, actually set the password as well as flag whether it is required.
author peter1138 <peter1138@openttd.org>
date Thu, 19 Jan 2006 21:29:54 +0000
parents 33c67cbbff90
children c58daad16c4b
files console_cmds.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/console_cmds.c
+++ b/console_cmds.c
@@ -1117,8 +1117,10 @@
 	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;
 }