projects
/
oweals
/
minetest.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3a90b78
)
Show media download progress in percent on progress screen (#5498)
author
orwell96
<mono96.mml@gmail.com>
Thu, 6 Apr 2017 22:03:29 +0000
(
00:03
+0200)
committer
Loïc Blot
<nerzhul@users.noreply.github.com>
Thu, 6 Apr 2017 22:03:29 +0000
(
00:03
+0200)
src/game.cpp
patch
|
blob
|
history
diff --git
a/src/game.cpp
b/src/game.cpp
index 62d2405f281b8269db21dd65e7d4a5ada375499f..14dfa73b7150e53fa271b46cc2072728bc4132ed 100644
(file)
--- 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"))) {