Added print out for disconnect

This commit is contained in:
Pontus Fransson 2014-02-21 11:12:24 +01:00
parent 4072e7aca2
commit a46ba0efb5
1 changed files with 1 additions and 0 deletions

View File

@ -78,6 +78,7 @@ using namespace DanBias;
{
if(this->gClients[temp]->IncrementFailedProtocol() >= 5/*client->threshold*/)
{
printf("\t(%i : %s) - EventType_Disconnect\n", cl->GetClient()->GetID(), e.sender->GetIpAddress().c_str());
Protocol_ObjectDisconnectPlayer prot(this->gClients[temp]->GetPlayer()->GetID());
for (unsigned int i = 0; i < this->gClients.Size(); i++)
{