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
|
@ -680,7 +680,7 @@ void Sky::draw_stars(video::IVideoDriver * driver, float wicked_time_of_day)
|
|||
|
||||
float tod = wicked_time_of_day < 0.5f ? wicked_time_of_day : (1.0f - wicked_time_of_day);
|
||||
float day_opacity = clamp(m_star_params.day_opacity, 0.0f, 1.0f);
|
||||
float starbrightness = (0.25f - fabs(tod)) * 20.0f;
|
||||
float starbrightness = (0.25f - std::abs(tod)) * 20.0f;
|
||||
float alpha = clamp(starbrightness, day_opacity, 1.0f);
|
||||
|
||||
m_star_color = m_star_params.starcolor;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue