diff options
author | rubidium <rubidium@openttd.org> | 2009-01-20 01:32:06 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-01-20 01:32:06 +0000 |
commit | 5f3772a42c322a99d2ea57b6c97b76fceccbb781 (patch) | |
tree | f14ce239c04d4b6e3d7f4dbe6723e777a42cc03f /src/openttd.cpp | |
parent | 6e1af6a051b5129c0703dd654794427094d672c8 (diff) | |
download | openttd-5f3772a42c322a99d2ea57b6c97b76fceccbb781.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/openttd.cpp')
-rw-r--r-- | src/openttd.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/openttd.cpp b/src/openttd.cpp index 703bfdb7c..1150cabfa 100644 --- a/src/openttd.cpp +++ b/src/openttd.cpp @@ -681,7 +681,7 @@ int ttd_main(int argc, char *argv[]) ParseConnectionString(¬_used, &port, debuglog_conn); if (port != NULL) rport = atoi(port); - NetworkStartDebugLog(debuglog_conn, rport); + NetworkStartDebugLog(NetworkAddress(debuglog_conn, rport)); } #endif /* ENABLE_NETWORK */ @@ -728,7 +728,7 @@ int ttd_main(int argc, char *argv[]) LoadIntroGame(); _switch_mode = SM_NONE; - NetworkClientConnectGame(network_conn, rport); + NetworkClientConnectGame(NetworkAddress(network_conn, rport)); } } #endif /* ENABLE_NETWORK */ @@ -1219,7 +1219,7 @@ void GameLoop() if (_network_reconnect > 0 && --_network_reconnect == 0) { /* This means that we want to reconnect to the last host * We do this here, because it means that the network is really closed */ - NetworkClientConnectGame(_settings_client.network.last_host, _settings_client.network.last_port); + NetworkClientConnectGame(NetworkAddress(_settings_client.network.last_host, _settings_client.network.last_port)); } /* Singleplayer */ StateGameLoop(); |