mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-11 13:10:45 +00:00
(svn r22696) -Fix: don't requery the servers when the server list window isn't opened
This commit is contained in:
parent
289133be14
commit
36e887591b
@ -837,7 +837,6 @@ void NetworkUDPGameLoop()
|
||||
} else {
|
||||
_udp_client_socket->ReceivePackets();
|
||||
if (_network_udp_broadcast > 0) _network_udp_broadcast--;
|
||||
NetworkGameListRequery();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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};
|
||||
|
Loading…
Reference in New Issue
Block a user