1
0

Server: Fixed a MSVC warning.

This commit is contained in:
Mattes D 2014-12-03 18:04:21 +01:00
parent 664ea804a3
commit f206f34a3d

View File

@ -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)