mirror of
https://github.com/luanti-org/luanti.git
synced 2025-09-30 19:22:14 +00:00
Fix clang-tidy type promotion errors
This commit is contained in:
parent
229389b7f6
commit
9fcd7f2dc0
10 changed files with 20 additions and 17 deletions
|
@ -182,7 +182,7 @@ void ClientEnvironment::step(float dtime)
|
|||
Stuff that has a maximum time increment
|
||||
*/
|
||||
|
||||
u32 steps = ceil(dtime / dtime_max_increment);
|
||||
u32 steps = std::ceil(dtime / dtime_max_increment);
|
||||
f32 dtime_part = dtime / steps;
|
||||
for (; steps > 0; --steps) {
|
||||
/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue