Call gui callbacks for server list.

This commit is contained in:
lotodore
2009-04-05 13:11:52 +00:00
parent 4bfa4333d7
commit ef91702d66
2 changed files with 3 additions and 2 deletions
+1
View File
@@ -509,6 +509,7 @@ ClientStateReadingServerList::Process(ClientThread &client)
} }
else if (serverCount > 1) else if (serverCount > 1)
{ {
client.GetCallback().SignalNetClientServerListShow();
client.SetState(ClientStateWaitChooseServer::Instance()); client.SetState(ClientStateWaitChooseServer::Instance());
} }
else else
+2 -2
View File
@@ -969,7 +969,7 @@ ClientThread::AddServerInfo(unsigned serverId, const ServerInfo &info)
boost::mutex::scoped_lock lock(m_serverInfoMapMutex); boost::mutex::scoped_lock lock(m_serverInfoMapMutex);
m_serverInfoMap.insert(ServerInfoMap::value_type(serverId, info)); m_serverInfoMap.insert(ServerInfoMap::value_type(serverId, info));
} }
//GetCallback().SignalNetClientServerListAdd(serverId); GetCallback().SignalNetClientServerListAdd(serverId);
} }
void void
@@ -979,7 +979,7 @@ ClientThread::ClearServerInfoMap()
boost::mutex::scoped_lock lock(m_serverInfoMapMutex); boost::mutex::scoped_lock lock(m_serverInfoMapMutex);
m_serverInfoMap.clear(); m_serverInfoMap.clear();
} }
//GetCallback().SignalNetClientServerListClear(); GetCallback().SignalNetClientServerListClear();
} }
bool bool