From e65f6aa238d29b3400970c32c55b8912ce8db03e Mon Sep 17 00:00:00 2001 From: DarthArgus Date: Fri, 6 May 2016 03:57:34 +0000 Subject: [PATCH] actually, greater than makes sense here without the equal, 0 base and all --- .../application/CentralServer/src/shared/CentralServer.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/engine/server/application/CentralServer/src/shared/CentralServer.cpp b/engine/server/application/CentralServer/src/shared/CentralServer.cpp index acf2bcc6..5189e047 100755 --- a/engine/server/application/CentralServer/src/shared/CentralServer.cpp +++ b/engine/server/application/CentralServer/src/shared/CentralServer.cpp @@ -2775,7 +2775,7 @@ void CentralServer::update() m_curTime = static_cast(time(0)); // Tell the LoginServers if necessary - if ((++loopCount >= ConfigCentralServer::getUpdatePlayerCountFrequency())) + if ((++loopCount > ConfigCentralServer::getUpdatePlayerCountFrequency())) { loopCount = 0; @@ -2788,7 +2788,7 @@ void CentralServer::update() int webUpdateIntervalSeconds = ConfigCentralServer::getWebUpdateIntervalSeconds(); // assuming that every 5th frame is ~1 second, we can multiply and then check - if ( webUpdateIntervalSeconds && (++apiLoopCount >= (webUpdateIntervalSeconds*5)) ) + if ( webUpdateIntervalSeconds && (++apiLoopCount > (webUpdateIntervalSeconds*5)) ) { apiLoopCount = 0; @@ -2820,7 +2820,7 @@ void CentralServer::update() } // check every 5th frame (one second roughly?) - if ( ++shutdownCheckLoopCount == 5 ) + if ( ++shutdownCheckLoopCount > 5 ) { shutdownCheckLoopCount = 0;