Fix Media... 0% on loading screen (#9478)

This commit is contained in:
Maksim 2020-10-21 21:42:40 +02:00 committed by GitHub
parent f53396b152
commit 5c0a57f606
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1641,7 +1641,10 @@ bool Game::getServerContent(bool *aborted)
std::stringstream message; std::stringstream message;
std::fixed(message); std::fixed(message);
message.precision(0); 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); message.precision(2);
if ((USE_CURL == 0) || if ((USE_CURL == 0) ||