Skip to content

Commit 5c0a57f

Browse files
author
Maksim
authoredOct 21, 2020
Fix Media... 0% on loading screen (#9478)
1 parent f53396b commit 5c0a57f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed
 

‎src/client/game.cpp

+4-1
Original file line numberDiff line numberDiff line change
@@ -1641,7 +1641,10 @@ bool Game::getServerContent(bool *aborted)
16411641
std::stringstream message;
16421642
std::fixed(message);
16431643
message.precision(0);
1644-
message << gettext("Media...") << " " << (client->mediaReceiveProgress()*100) << "%";
1644+
float receive = client->mediaReceiveProgress() * 100;
1645+
message << gettext("Media...");
1646+
if (receive > 0)
1647+
message << " " << receive << "%";
16451648
message.precision(2);
16461649

16471650
if ((USE_CURL == 0) ||

0 commit comments

Comments
 (0)
Please sign in to comment.