summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2010-03-08 11:51:23 +0000
committerpeter1138 <peter1138@openttd.org>2010-03-08 11:51:23 +0000
commit3c40fe42d46143431c808d7cf5ca5bb0e689aeac (patch)
tree0198f3dc99b15f3cc68776d486df361cdeffb385 /src
parente6de669bf26946a77f25a195769cd90d677327b6 (diff)
downloadopenttd-3c40fe42d46143431c808d7cf5ca5bb0e689aeac.tar.xz
(svn r19374) -Change: Update documentation for console command connect to use ip:port#company parameter format, in line with command line help.
Diffstat (limited to 'src')
-rw-r--r--src/console_cmds.cpp2
-rw-r--r--src/network/network.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/console_cmds.cpp b/src/console_cmds.cpp
index 716d6cdcc..72df91641 100644
--- a/src/console_cmds.cpp
+++ b/src/console_cmds.cpp
@@ -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;
}
diff --git a/src/network/network.cpp b/src/network/network.cpp
index 2cf12bb61..6d574cceb 100644
--- a/src/network/network.cpp
+++ b/src/network/network.cpp
@@ -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