diff options
author | 20kdc <asdd2808@gmail.com> | 2023-02-17 23:03:03 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-18 00:03:03 +0100 |
commit | 75e6cc190a9b1cc1c3aae059502801365c3a412b (patch) | |
tree | 05703cf5167b21775166de9918300711e3873106 /src/network/clientpackethandler.cpp | |
parent | 2a8becd650a8adaa86fd7f76122ea75f11f49dad (diff) | |
download | minetest-75e6cc190a9b1cc1c3aae059502801365c3a412b.tar.xz |
Source image tracking in tile generation (#12514)
Diffstat (limited to 'src/network/clientpackethandler.cpp')
-rw-r--r-- | src/network/clientpackethandler.cpp | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/network/clientpackethandler.cpp b/src/network/clientpackethandler.cpp index 8a323872a..9c9d8276e 100644 --- a/src/network/clientpackethandler.cpp +++ b/src/network/clientpackethandler.cpp @@ -1592,14 +1592,6 @@ void Client::handleCommand_MediaPush(NetworkPacket *pkt) verbosestream << "with " << filedata.size() << " bytes "; verbosestream << "(cached=" << cached << ")" << std::endl; - if (m_media_pushed_files.count(filename) != 0) { - // Ignore (but acknowledge). Previously this was for sync purposes, - // but even in new versions media cannot be replaced at runtime. - if (m_proto_ver >= 40) - sendHaveMedia({ token }); - return; - } - if (!filedata.empty()) { // LEGACY CODEPATH // Compute and check checksum of data @@ -1618,7 +1610,6 @@ void Client::handleCommand_MediaPush(NetworkPacket *pkt) // Actually load media loadMedia(filedata, filename, true); - m_media_pushed_files.insert(filename); // Cache file for the next time when this client joins the same server if (cached) @@ -1626,8 +1617,6 @@ void Client::handleCommand_MediaPush(NetworkPacket *pkt) return; } - m_media_pushed_files.insert(filename); - // create a downloader for this file auto downloader(std::make_shared<SingleMediaDownloader>(cached)); m_pending_media_downloads.emplace_back(token, downloader); |