summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-12-03 18:04:21 +0100
committerMattes D <github@xoft.cz>2014-12-03 18:04:21 +0100
commitf206f34a3d1d5bdda7625a61dcf35514f485af79 (patch)
tree4dfa4697916ebb3395228d09ce0d9b33187b9fa2
parentByteBuffer: Re-added Single-thread access checker. (diff)
downloadcuberite-f206f34a3d1d5bdda7625a61dcf35514f485af79.tar
cuberite-f206f34a3d1d5bdda7625a61dcf35514f485af79.tar.gz
cuberite-f206f34a3d1d5bdda7625a61dcf35514f485af79.tar.bz2
cuberite-f206f34a3d1d5bdda7625a61dcf35514f485af79.tar.lz
cuberite-f206f34a3d1d5bdda7625a61dcf35514f485af79.tar.xz
cuberite-f206f34a3d1d5bdda7625a61dcf35514f485af79.tar.zst
cuberite-f206f34a3d1d5bdda7625a61dcf35514f485af79.zip
Diffstat (limited to '')
-rw-r--r--src/Server.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Server.cpp b/src/Server.cpp
index 8759d5747..db1522602 100644
--- a/src/Server.cpp
+++ b/src/Server.cpp
@@ -78,7 +78,7 @@ void cServer::cTickThread::Execute(void)
while (!m_ShouldTerminate)
{
auto NowTime = std::chrono::steady_clock::now();
- m_ShouldTerminate = !m_Server.Tick(std::chrono::duration_cast<std::chrono::milliseconds>(NowTime - LastTime).count());
+ m_ShouldTerminate = !m_Server.Tick(static_cast<float>(std::chrono::duration_cast<std::chrono::milliseconds>(NowTime - LastTime).count()));
auto TickTime = std::chrono::steady_clock::now() - NowTime;
if (TickTime < msPerTick)