# HG changeset patch # User rubidium # Date 2011-07-30 10:44:58 # Node ID 8dfb20a2d652a538daba3af8cfc355156eb3edca # Parent 18d13f57e663aa0a9f88bdc6751147417633f68a (svn r22696) -Fix: don't requery the servers when the server list window isn't opened diff --git a/src/network/network.cpp b/src/network/network.cpp --- a/src/network/network.cpp +++ b/src/network/network.cpp @@ -837,7 +837,6 @@ void NetworkUDPGameLoop() } else { _udp_client_socket->ReceivePackets(); if (_network_udp_broadcast > 0) _network_udp_broadcast--; - NetworkGameListRequery(); } } diff --git a/src/network/network_gui.cpp b/src/network/network_gui.cpp --- a/src/network/network_gui.cpp +++ b/src/network/network_gui.cpp @@ -889,6 +889,11 @@ public: this->vscroll->SetCapacityFromWidget(this, NGWW_MATRIX); this->GetWidget(NGWW_MATRIX)->widget_data = (this->vscroll->GetCapacity() << MAT_ROW_START) + (1 << MAT_COL_START); } + + virtual void OnTick() + { + NetworkGameListRequery(); + } }; Listing NetworkGameWindow::last_sorting = {false, 5};