summaryrefslogtreecommitdiff
path: root/src/client.cpp
diff options
context:
space:
mode:
authorred-001 <red-001@outlook.ie>2017-04-26 20:10:13 +0100
committerLoïc Blot <nerzhul@users.noreply.github.com>2017-04-26 21:10:13 +0200
commitff1ef67dccefb8d283142ea86db250f07aee095c (patch)
tree563f89059b9a71f31073fcfc450e591f3f2f11cd /src/client.cpp
parent70ceeb80a180507e38db957f217e2c78ce901692 (diff)
downloadminetest-ff1ef67dccefb8d283142ea86db250f07aee095c.tar.gz
minetest-ff1ef67dccefb8d283142ea86db250f07aee095c.tar.bz2
minetest-ff1ef67dccefb8d283142ea86db250f07aee095c.zip
Fix #5655 (#5658)
Client: Don't send `TOSERVER_RECEIVED_MEDIA` since it's not used anymore Server: Handle `TOSERVER_RECEIVED_MEDIA` using `Server::handleCommand_Deprecated`
Diffstat (limited to 'src/client.cpp')
-rw-r--r--src/client.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/client.cpp b/src/client.cpp
index 19fe9b0ba..019693f1d 100644
--- a/src/client.cpp
+++ b/src/client.cpp
@@ -526,7 +526,6 @@ void Client::step(float dtime)
if (m_media_downloader && m_media_downloader->isStarted()) {
m_media_downloader->step(this);
if (m_media_downloader->isDone()) {
- received_media();
delete m_media_downloader;
m_media_downloader = NULL;
}
@@ -747,14 +746,6 @@ void Client::request_media(const std::vector<std::string> &file_requests)
<< file_requests.size() << " files. packet size)" << std::endl;
}
-void Client::received_media()
-{
- NetworkPacket pkt(TOSERVER_RECEIVED_MEDIA, 0);
- Send(&pkt);
- infostream << "Client: Notifying server that we received all media"
- << std::endl;
-}
-
void Client::initLocalMapSaving(const Address &address,
const std::string &hostname,
bool is_local_server)