aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authororwell96 <mono96.mml@gmail.com>2017-04-07 00:03:29 +0200
committerLoïc Blot <nerzhul@users.noreply.github.com>2017-04-07 00:03:29 +0200
commit63e175dd70898e2ae714a025d1eaee45a453d41c (patch)
treebe703ad8f14d3f59fa6596240d0a1eeae25ec969
parent3a90b78a037df3eb9098d4fddb1289ed8ee21329 (diff)
downloadminetest-63e175dd70898e2ae714a025d1eaee45a453d41c.tar.gz
minetest-63e175dd70898e2ae714a025d1eaee45a453d41c.tar.bz2
minetest-63e175dd70898e2ae714a025d1eaee45a453d41c.zip
Show media download progress in percent on progress screen (#5498)
-rw-r--r--src/game.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/game.cpp b/src/game.cpp
index 62d2405f2..14dfa73b7 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -2192,8 +2192,10 @@ bool Game::getServerContent(bool *aborted)
delete[] text;
} else {
std::stringstream message;
- message.precision(3);
- message << gettext("Media...");
+ std::fixed(message);
+ message.precision(0);
+ message << gettext("Media...") << " " << (client->mediaReceiveProgress()*100) << "%";
+ message.precision(2);
if ((USE_CURL == 0) ||
(!g_settings->getBool("enable_remote_media_server"))) {