]> git.lizzy.rs Git - minetest.git/blobdiff - src/network/serverpackethandler.cpp
Rename Scripting API files for consistency
[minetest.git] / src / network / serverpackethandler.cpp
index 2e4c5b6be8cf54c94df7384fd5fdacf0f2a64957..5b026bbdb03dffb3d27fcdaf60866efe8b07fe94 100644 (file)
@@ -27,7 +27,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 #include "nodedef.h"
 #include "player.h"
 #include "rollback_interface.h"
-#include "serverscripting.h"
+#include "scripting_server.h"
 #include "settings.h"
 #include "tool.h"
 #include "version.h"
@@ -674,10 +674,6 @@ void Server::handleCommand_RequestMedia(NetworkPacket* pkt)
        sendRequestedMedia(pkt->getPeerId(), tosend);
 }
 
-void Server::handleCommand_ReceivedMedia(NetworkPacket* pkt)
-{
-}
-
 void Server::handleCommand_ClientReady(NetworkPacket* pkt)
 {
        u16 peer_id = pkt->getPeerId();
@@ -726,7 +722,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());
        }
 }