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

This commit is contained in:
rubidium 2011-07-30 10:44:58 +00:00
parent 289133be14
commit 36e887591b
2 changed files with 5 additions and 1 deletions

View File

@ -837,7 +837,6 @@ void NetworkUDPGameLoop()
} else {
_udp_client_socket->ReceivePackets();
if (_network_udp_broadcast > 0) _network_udp_broadcast--;
NetworkGameListRequery();
}
}

View File

@ -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};