From 36e887591bde9e7358b8dc5827cb4a1e9f332006 Mon Sep 17 00:00:00 2001 From: rubidium Date: Sat, 30 Jul 2011 10:44:58 +0000 Subject: [PATCH] (svn r22696) -Fix: don't requery the servers when the server list window isn't opened --- src/network/network.cpp | 1 - src/network/network_gui.cpp | 5 +++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/network/network.cpp b/src/network/network.cpp index d3f771c8e3..f2f1486d50 100644 --- 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 index 305394ba21..e82d162df5 100644 --- 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};