Fix some bugs.
This commit is contained in:
parent
b866f4caa1
commit
caec3f954f
@ -121,11 +121,10 @@ namespace Components
|
||||
}
|
||||
}
|
||||
|
||||
if (list.address_size() > 0)
|
||||
{
|
||||
// Even if we send an empty list, we have to tell the client about our dedi-status
|
||||
// If the amount of servers we have modulo the NODE_PACKET_LIMIT equals 0, we will send this request without any servers, so it's obsolete, but meh...
|
||||
Network::SendCommand(address, "nodeListResponse", list.SerializeAsString());
|
||||
}
|
||||
}
|
||||
|
||||
void Node::DeleteInvalidSessions()
|
||||
{
|
||||
@ -235,6 +234,7 @@ namespace Components
|
||||
listQueryCount++;
|
||||
node.state = Node::STATE_NEGOTIATING;
|
||||
node.lastTime = Game::Com_Milliseconds();
|
||||
node.lastListQuery = Game::Com_Milliseconds();
|
||||
|
||||
if (Dedicated::IsDedicated())
|
||||
{
|
||||
@ -571,7 +571,6 @@ namespace Components
|
||||
entry->isDedi = list.is_dedi();
|
||||
entry->state = Node::STATE_VALID;
|
||||
entry->lastTime = Game::Com_Milliseconds();
|
||||
entry->lastListQuery = Game::Com_Milliseconds();
|
||||
|
||||
if (!Dedicated::IsDedicated() && entry->isDedi && ServerList::IsOnlineList())
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user