Clean up and comment

This commit is contained in:
smallmodel 2025-04-14 23:47:01 +02:00
parent 3964960d31
commit 8d1d8d8b53
No known key found for this signature in database
GPG key ID: 9F2D623CEDF08512
2 changed files with 22 additions and 9 deletions

View file

@ -61,7 +61,6 @@ Event EV_UIInstantAction_Refresh
"Refresh the server list"
);
CLASS_DECLARATION(UIWidget, UIInstantAction, NULL) {
{&EV_UIInstantAction_AcceptServer, &UIInstantAction::Connect },
{&EV_UIInstantAction_RejectServer, &UIInstantAction::Reject },
@ -86,9 +85,9 @@ UIInstantAction::UIInstantAction()
startingMaxPing = 100;
endingMaxPing = 1500;
maxServers = -1;
servers = NULL;
doneList[0] = false;
doneList[1] = false;
servers = 0;
serverList[0] = NULL;
serverList[1] = NULL;

View file

@ -74,16 +74,30 @@ private:
static void IAServerListCallBack(GServerList serverlist, int msg, void *instance, void *param1, void *param2);
private:
//
// List
//
bool doneList[2];
GServerList serverList[2];
int maxServers;
IAState_e state;
int numServers;
int numFoundServers;
int minPlayers;
int startingMaxPing;
int endingMaxPing;
//
// Current states
//
IAState_e state;
int numServers;
int numFoundServers;
//
// Filters
//
int minPlayers;
int startingMaxPing;
int endingMaxPing;
//
// Servers
//
IAServer_t *servers;
int currentServer;
};