Fix MSVC build broken by 34d32ce
[oweals/minetest.git] / src / network / serverpackethandler.cpp
index 2e4c5b6be8cf54c94df7384fd5fdacf0f2a64957..174b827f0147cced12fa602ac9655075e7525f75 100644 (file)
@@ -726,7 +726,7 @@ void Server::handleCommand_ClientReady(NetworkPacket* pkt)
        if (m_shutdown_timer > 0.0f) {
                std::wstringstream ws;
                ws << L"*** Server shutting down in "
-                               << duration_to_string(round(m_shutdown_timer)).c_str() << ".";
+                               << duration_to_string(myround(m_shutdown_timer)).c_str() << ".";
                SendChatMessage(pkt->getPeerId(), ws.str());
        }
 }