mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-11 17:51: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
|
@ -1216,7 +1216,7 @@ void GenericCAO::step(float dtime, ClientEnvironment *env)
|
|||
}
|
||||
}
|
||||
|
||||
if (node && fabs(m_prop.automatic_rotate) > 0.001f) {
|
||||
if (node && std::abs(m_prop.automatic_rotate) > 0.001f) {
|
||||
// This is the child node's rotation. It is only used for automatic_rotate.
|
||||
v3f local_rot = node->getRotation();
|
||||
local_rot.Y = modulo360f(local_rot.Y - dtime * core::RADTODEG *
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue