make hide_download_commands configurable

This commit is contained in:
Martin Michelsen
2023-12-24 22:50:33 -08:00
parent 84ed80365c
commit ad32c0a986
7 changed files with 14 additions and 3 deletions
+2 -1
View File
@@ -3206,7 +3206,8 @@ void send_quest_file_chunk(
cmd.data_size = size;
c->log.info("Sending quest file chunk %s:%zu", filename.c_str(), chunk_index);
c->channel.send(is_download_quest ? 0xA7 : 0x13, chunk_index, &cmd, sizeof(cmd), true);
const auto& s = c->require_server_state();
c->channel.send(is_download_quest ? 0xA7 : 0x13, chunk_index, &cmd, sizeof(cmd), s->hide_download_commands);
}
template <typename CommandT>