|
@@ -76,22 +76,24 @@ NetworkRecvStatus QueryNetworkGameSocket
|
|
|
}
|
|
|
|
|
|
NetworkRecvStatus QueryNetworkGameSocketHandler::Receive_SERVER_FULL(Packet *p)
|
|
|
{
|
|
|
NetworkGameList *item = NetworkGameListAddItem(this->connection_string);
|
|
|
item->status = NGLS_FULL;
|
|
|
item->refreshing = false;
|
|
|
|
|
|
UpdateNetworkGameWindow();
|
|
|
|
|
|
return NETWORK_RECV_STATUS_CLOSE_QUERY;
|
|
|
}
|
|
|
|
|
|
NetworkRecvStatus QueryNetworkGameSocketHandler::Receive_SERVER_BANNED(Packet *p)
|
|
|
{
|
|
|
NetworkGameList *item = NetworkGameListAddItem(this->connection_string);
|
|
|
item->status = NGLS_BANNED;
|
|
|
item->refreshing = false;
|
|
|
|
|
|
UpdateNetworkGameWindow();
|
|
|
|
|
|
return NETWORK_RECV_STATUS_CLOSE_QUERY;
|
|
|
}
|
|
|
|
|
@@ -104,12 +106,13 @@ NetworkRecvStatus QueryNetworkGameSocket
|
|
|
/* Retrieve the NetworkGameInfo from the packet. */
|
|
|
DeserializeNetworkGameInfo(p, &item->info);
|
|
|
/* Check for compatability with the client. */
|
|
|
CheckGameCompatibility(item->info);
|
|
|
/* Ensure we consider the server online. */
|
|
|
item->status = NGLS_ONLINE;
|
|
|
item->refreshing = false;
|
|
|
|
|
|
UpdateNetworkGameWindow();
|
|
|
|
|
|
return NETWORK_RECV_STATUS_CLOSE_QUERY;
|
|
|
}
|
|
|
|
|
@@ -125,12 +128,13 @@ NetworkRecvStatus QueryNetworkGameSocket
|
|
|
* user this server is too old to query.
|
|
|
*/
|
|
|
item->status = NGLS_TOO_OLD;
|
|
|
} else {
|
|
|
item->status = NGLS_OFFLINE;
|
|
|
}
|
|
|
item->refreshing = false;
|
|
|
|
|
|
UpdateNetworkGameWindow();
|
|
|
|
|
|
return NETWORK_RECV_STATUS_CLOSE_QUERY;
|
|
|
}
|
|
|
|