# HG changeset patch # User peter1138 # Date 1268049083 0 # Node ID 597a9e9c7620bdf32b492378e5064292bce3b827 # Parent edf13db14a76293beee3e9920f417b6f5c9ab35c (svn r19374) -Change: Update documentation for console command connect to use ip:port#company parameter format, in line with command line help. diff --git a/src/console_cmds.cpp b/src/console_cmds.cpp --- a/src/console_cmds.cpp +++ b/src/console_cmds.cpp @@ -814,7 +814,7 @@ { if (argc == 0) { IConsoleHelp("Connect to a remote OTTD server and join the game. Usage: 'connect '"); - 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; } diff --git a/src/network/network.cpp b/src/network/network.cpp --- a/src/network/network.cpp +++ b/src/network/network.cpp @@ -468,7 +468,7 @@ } /** 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