aboutsummaryrefslogtreecommitdiff
path: root/src/network
diff options
context:
space:
mode:
authorSmallJoker <mk939@ymail.com>2017-04-17 13:49:48 +0200
committerSmallJoker <mk939@ymail.com>2017-04-17 14:02:26 +0200
commit61202513208b23d3e7a2a91d10aba154e6cbf352 (patch)
tree05d510be4eb3d86a517db9f816709df742631dfa /src/network
parent04cc9de8f2fbcb11f133c88f02fc11504b3ea6f3 (diff)
downloadminetest-61202513208b23d3e7a2a91d10aba154e6cbf352.tar.gz
minetest-61202513208b23d3e7a2a91d10aba154e6cbf352.tar.bz2
minetest-61202513208b23d3e7a2a91d10aba154e6cbf352.zip
Fix MSVC build broken by 34d32ce
`round` -> `myround` Remove superflous `floor` calls
Diffstat (limited to 'src/network')
-rw-r--r--src/network/serverpackethandler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/serverpackethandler.cpp b/src/network/serverpackethandler.cpp
index 2e4c5b6be..174b827f0 100644
--- a/src/network/serverpackethandler.cpp
+++ b/src/network/serverpackethandler.cpp
@@ -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());
}
}