Changeset - r14776:29492e34781f
[Not reviewed]
master
0 2 0
peter1138 - 14 years ago 2010-03-08 11:51:23
peter1138@openttd.org
(svn r19374) -Change: Update documentation for console command connect to use ip:port#company parameter format, in line with command line help.
2 files changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/console_cmds.cpp
Show inline comments
 
@@ -814,7 +814,7 @@ DEF_CONSOLE_CMD(ConNetworkConnect)
 
{
 
	if (argc == 0) {
 
		IConsoleHelp("Connect to a remote OTTD server and join the game. Usage: 'connect <ip>'");
 
		IConsoleHelp("IP can contain port and company: 'IP[[#Company]:Port]', eg: 'server.ottd.org#2:443'");
 
		IConsoleHelp("IP can contain port and company: 'IP[:Port][#Company]', eg: 'server.ottd.org:443#2'");
 
		IConsoleHelp("Company #255 is spectator all others are a certain company with Company 1 being #1");
 
		return true;
 
	}
src/network/network.cpp
Show inline comments
 
@@ -468,7 +468,7 @@ static void CheckPauseOnJoin()
 
}
 

	
 
/** Converts a string to ip/port/company
 
 *  Format: IP#company:port
 
 *  Format: IP:port#company
 
 *
 
 * connection_string will be re-terminated to seperate out the hostname, and company and port will
 
 * be set to the company and port strings given by the user, inside the memory area originally
0 comments (0 inline, 0 general)