(svn r22696) -Fix: don't requery the servers when the server list window isn't opened

pull/155/head
rubidium 13 years ago
parent 7c9432f94d
commit 838a7040f3

@ -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…
Cancel
Save