mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +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
|
@ -600,7 +600,8 @@ void LocalPlayer::applyControl(float dtime, Environment *env)
|
|||
}
|
||||
}
|
||||
|
||||
speedH = v3f(sin(control.movement_direction), 0.0f, cos(control.movement_direction));
|
||||
speedH = v3f(std::sin(control.movement_direction), 0.0f,
|
||||
std::cos(control.movement_direction));
|
||||
|
||||
if (m_autojump) {
|
||||
// release autojump after a given time
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue