1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-06 17:41:04 +00:00

Fix clang-tidy type promotion errors

This commit is contained in:
sfan5 2024-02-24 00:07:46 +01:00
parent 229389b7f6
commit 9fcd7f2dc0
10 changed files with 20 additions and 17 deletions

View file

@ -203,7 +203,7 @@ void LuaEntitySAO::step(float dtime, bool send_recommended)
}
}
if (fabs(m_prop.automatic_rotate) > 0.001f) {
if (std::abs(m_prop.automatic_rotate) > 0.001f) {
m_rotation_add_yaw = modulo360f(m_rotation_add_yaw + dtime * core::RADTODEG *
m_prop.automatic_rotate);
}