mirror of
https://github.com/minetest/minetest.git
synced 2024-09-12 00:26:50 +02:00
Fix Media... 0% on loading screen (#9478)
This commit is contained in:
parent
f53396b152
commit
5c0a57f606
@ -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) ||
|
||||
|
Loading…
Reference in New Issue
Block a user