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:
hilnius 2013-07-19 16:09:32 +00:00
parent 5c3251e797
commit 07d0e5560b
2 changed files with 2 additions and 0 deletions

View File

@ -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;
}
}

View File

@ -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);
}