mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Client: Don't send `TOSERVER_RECEIVED_MEDIA` since it's not used anymore Server: Handle `TOSERVER_RECEIVED_MEDIA` using `Server::handleCommand_Deprecated`
This commit is contained in:
parent
70ceeb80a1
commit
ff1ef67dcc
4 changed files with 3 additions and 13 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue