From 6552a9ddcc2a28e1e3b4d1a53ffd1b2c93f7b418 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Wed, 3 Apr 2013 16:18:51 +0000 Subject: Server: removed the artificial cap on reported tick duration git-svn-id: http://mc-server.googlecode.com/svn/trunk@1353 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/Server.cpp | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/source/Server.cpp b/source/Server.cpp index ce631f754..03fd3c4d8 100644 --- a/source/Server.cpp +++ b/source/Server.cpp @@ -314,17 +314,14 @@ void cServer::BroadcastChat(const AString & a_Message, const cClientHandle * a_E bool cServer::Tick(float a_Dt) { - //LOG("1. Tick %0.2f", a_Dt); - if( a_Dt > 100.f ) a_Dt = 100.f; // Don't go over 1/10 second - m_Millisecondsf += a_Dt; - if( m_Millisecondsf > 1.f ) + if (m_Millisecondsf > 1.f) { m_Milliseconds += (int)m_Millisecondsf; m_Millisecondsf = m_Millisecondsf - (int)m_Millisecondsf; } - cRoot::Get()->TickWorlds( a_Dt ); // TODO - Maybe give all worlds their own thread? + cRoot::Get()->TickWorlds(a_Dt); // TODO - Maybe give all worlds their own thread? cClientHandleList RemoveClients; { @@ -346,9 +343,9 @@ bool cServer::Tick(float a_Dt) delete *itr; } // for itr - RemoveClients[] - cRoot::Get()->GetPluginManager()->Tick( a_Dt ); + cRoot::Get()->GetPluginManager()->Tick(a_Dt); - if( !m_bRestarting ) + if (!m_bRestarting) { return true; } -- cgit v1.2.3