server changes
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/hilnius@13289 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
5c3251e797
commit
07d0e5560b
@ -64,6 +64,7 @@ Event::Event(ENetEvent* event)
|
||||
if (peers[i]->m_peer == event->peer)
|
||||
{
|
||||
*peer = peers[i];
|
||||
Log::info("Event", "The peer you sought has been found on %lx", (long int)(peer));
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
@ -93,6 +93,7 @@ void NetworkManager::notifyEvent(Event* event)
|
||||
if (event->type == EVENT_TYPE_CONNECTED)
|
||||
{
|
||||
Log::info("NetworkManager", "A client has just connected. There are now %lu peers.", m_peers.size() + 1);
|
||||
Log::info("NetworkManager", "Addresses are : %lx, %lx, %lx", event->peer, *event->peer, peer);
|
||||
// create the new peer:
|
||||
m_peers.push_back(peer);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user