diff options
author | Maksim <MoNTE48@mail.ua> | 2020-10-21 21:42:40 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-21 20:42:40 +0100 |
commit | 5c0a57f6068000b0414cf2a3ef76a8bf4852b379 (patch) | |
tree | 459a29eaddeb492f409338ae166aad6e9c6fa7d1 /src | |
parent | f53396b1523f5adb99fcc9e8fe5262a205217489 (diff) | |
download | minetest-5c0a57f6068000b0414cf2a3ef76a8bf4852b379.tar.gz minetest-5c0a57f6068000b0414cf2a3ef76a8bf4852b379.tar.bz2 minetest-5c0a57f6068000b0414cf2a3ef76a8bf4852b379.zip |
Fix Media... 0% on loading screen (#9478)
Diffstat (limited to 'src')
-rw-r--r-- | src/client/game.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/client/game.cpp b/src/client/game.cpp index a7e367ae2..0380c1661 100644 --- a/src/client/game.cpp +++ b/src/client/game.cpp @@ -1641,7 +1641,10 @@ bool Game::getServerContent(bool *aborted) std::stringstream message; std::fixed(message); message.precision(0); - message << gettext("Media...") << " " << (client->mediaReceiveProgress()*100) << "%"; + float receive = client->mediaReceiveProgress() * 100; + message << gettext("Media..."); + if (receive > 0) + message << " " << receive << "%"; message.precision(2); if ((USE_CURL == 0) || |