Changeset - r664:60050c4ce6c1
[Not reviewed]
master
0 1 0
truelight - 19 years ago 2004-12-15 17:24:10
truelight@openttd.org
(svn r1100) -Fix: [Console] 'set company_pw' is now working again (Hackykid)
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
console_cmds.c
Show inline comments
 
@@ -628,13 +628,13 @@ DEF_CONSOLE_CMD(ConSet) {
 
			return NULL;
 
		}
 
		if (argc == 3) {
 
			if (strncmp(argv[2], "*", 20) == 0) {
 
				_network_player_info[_local_player].password[0] = '\0';
 
			} else {
 
				strncpy(_network_player_info[_local_player].password, argv[1], 20);
 
				strncpy(_network_player_info[_local_player].password, argv[2], 20);
 
			}
 
			if (!_network_server)
 
				SEND_COMMAND(PACKET_CLIENT_SET_PASSWORD)(_network_player_info[_local_player].password);
 
			IConsolePrintF(_iconsole_color_warning, "Company protected with '%s'", _network_player_info[_local_player].password);
 
		} else {
 
			IConsolePrint(_iconsole_color_default, "'set company_pw' sets a password on your company, so no-one without the correct password can join.");
0 comments (0 inline, 0 general)