Mercurial > hg > openttd
changeset 17897:85ca3c066925 draft
(svn r22696) -Fix: don't requery the servers when the server list window isn't opened
author | rubidium <rubidium@openttd.org> |
---|---|
date | Sat, 30 Jul 2011 10:44:58 +0000 |
parents | b76a26d921f1 |
children | 307d1c360da9 |
files | src/network/network.cpp src/network/network_gui.cpp |
diffstat | 2 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/network/network.cpp +++ b/src/network/network.cpp @@ -837,7 +837,6 @@ } else { _udp_client_socket->ReceivePackets(); if (_network_udp_broadcast > 0) _network_udp_broadcast--; - NetworkGameListRequery(); } }
--- a/src/network/network_gui.cpp +++ b/src/network/network_gui.cpp @@ -889,6 +889,11 @@ this->vscroll->SetCapacityFromWidget(this, NGWW_MATRIX); this->GetWidget<NWidgetCore>(NGWW_MATRIX)->widget_data = (this->vscroll->GetCapacity() << MAT_ROW_START) + (1 << MAT_COL_START); } + + virtual void OnTick() + { + NetworkGameListRequery(); + } }; Listing NetworkGameWindow::last_sorting = {false, 5};