summaryrefslogtreecommitdiff
path: root/src/console_cmds.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-01-20 01:32:06 +0000
committerrubidium <rubidium@openttd.org>2009-01-20 01:32:06 +0000
commit4aabc91c04c8fafa4f2be139394ef7e4912bc42f (patch)
treef14ce239c04d4b6e3d7f4dbe6723e777a42cc03f /src/console_cmds.cpp
parent0893cb2adfd7eaa729058bdf903c3064c84f707c (diff)
downloadopenttd-4aabc91c04c8fafa4f2be139394ef7e4912bc42f.tar.xz
(svn r15157) -Codechange: wrap the hostname/ip and port into a single structure so we can pass either one of them and not convert an ip to a string and then back again.
Diffstat (limited to 'src/console_cmds.cpp')
-rw-r--r--src/console_cmds.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/console_cmds.cpp b/src/console_cmds.cpp
index ad3375873..c0ef53e30 100644
--- a/src/console_cmds.cpp
+++ b/src/console_cmds.cpp
@@ -692,7 +692,7 @@ DEF_CONSOLE_CMD(ConNetworkConnect)
IConsolePrintF(CC_DEFAULT, " port: %s", port);
}
- NetworkClientConnectGame(ip, rport);
+ NetworkClientConnectGame(NetworkAddress(ip, rport));
return true;
}