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:
parent
229389b7f6
commit
9fcd7f2dc0
10 changed files with 20 additions and 17 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue