diff options
author | rubidium <rubidium@openttd.org> | 2008-06-09 12:17:01 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-06-09 12:17:01 +0000 |
commit | 657bbf305e89634d13b35eb88f6de1b66f86780a (patch) | |
tree | 5ac847d08af85cd81c504bf8f3e973528125d6a0 /src/network/network.cpp | |
parent | 2f59734909c9852cd2ca8ff1b529a6d37d9e8eca (diff) | |
download | openttd-657bbf305e89634d13b35eb88f6de1b66f86780a.tar.xz |
(svn r13433) -Codechange: remove a now useless global variable.
-Fix: MP advertising was not advertising.
Diffstat (limited to 'src/network/network.cpp')
-rw-r--r-- | src/network/network.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/network/network.cpp b/src/network/network.cpp index 9bc144cdb..0ed6431b5 100644 --- a/src/network/network.cpp +++ b/src/network/network.cpp @@ -45,7 +45,6 @@ bool _network_reload_cfg; bool _network_server; ///< network-server is active bool _network_available; ///< is network mode available? bool _network_dedicated; ///< are we a dedicated server? -bool _network_advertise; ///< is the server advertising to the master server? bool _is_network_server; ///< Does this client wants to be a network-server? NetworkServerGameInfo _network_game_info; NetworkPlayerInfo _network_player_info[MAX_PLAYERS]; @@ -1110,7 +1109,7 @@ void NetworkDisconnect() } } - if (_network_advertise) NetworkUDPRemoveAdvertise(); + if (_settings_client.network.server_advertise) NetworkUDPRemoveAdvertise(); DeleteWindowById(WC_NETWORK_STATUS_WINDOW, 0); |