diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-04-03 18:18:51 +0200 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-04-03 18:18:51 +0200 |
commit | 6552a9ddcc2a28e1e3b4d1a53ffd1b2c93f7b418 (patch) | |
tree | 3a51e20c5cba042b921ba113e606b95d4305e311 /source | |
parent | Added a /listgroups where you can see... a list of the groups ;) (diff) | |
download | cuberite-6552a9ddcc2a28e1e3b4d1a53ffd1b2c93f7b418.tar cuberite-6552a9ddcc2a28e1e3b4d1a53ffd1b2c93f7b418.tar.gz cuberite-6552a9ddcc2a28e1e3b4d1a53ffd1b2c93f7b418.tar.bz2 cuberite-6552a9ddcc2a28e1e3b4d1a53ffd1b2c93f7b418.tar.lz cuberite-6552a9ddcc2a28e1e3b4d1a53ffd1b2c93f7b418.tar.xz cuberite-6552a9ddcc2a28e1e3b4d1a53ffd1b2c93f7b418.tar.zst cuberite-6552a9ddcc2a28e1e3b4d1a53ffd1b2c93f7b418.zip |
Diffstat (limited to '')
-rw-r--r-- | source/Server.cpp | 11 |
1 files 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; } |