mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-14 09:05:19 +02:00
Fix more type promotion mistakes
Someone of these are probably actual bugs and gcc totally doesn't care to warn about them, wtf? This issue seems to be new with the IrrlichtMt update.
This commit is contained in:
@@ -1806,7 +1806,7 @@ struct TextureUpdateArgs {
|
||||
void Client::showUpdateProgressTexture(void *args, u32 progress, u32 max_progress)
|
||||
{
|
||||
TextureUpdateArgs* targs = (TextureUpdateArgs*) args;
|
||||
u16 cur_percent = ceil(progress / (double) max_progress * 100.);
|
||||
u16 cur_percent = std::ceil(progress / max_progress * 100.f);
|
||||
|
||||
// update the loading menu -- if necessary
|
||||
bool do_draw = false;
|
||||
|
Reference in New Issue
Block a user