summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/network/network.cpp1
-rw-r--r--src/network/network_gui.cpp5
2 files changed, 5 insertions, 1 deletions
diff --git a/src/network/network.cpp b/src/network/network.cpp
index d3f771c8e..f2f1486d5 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 305394ba2..e82d162df 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<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};