Skip to content

Commit

Permalink
Fix Media... 0% on loading screen (#9478)
Browse files Browse the repository at this point in the history
  • Loading branch information
Maksim committed Oct 21, 2020
1 parent f53396b commit 5c0a57f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/client/game.cpp
Expand Up @@ -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) ||
Expand Down

0 comments on commit 5c0a57f

Please sign in to comment.