-
-
Notifications
You must be signed in to change notification settings - Fork 492
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve cloud particles #3003
Improve cloud particles #3003
Conversation
Could someone Re-run the builds? |
@bruhmoent Can you rebase against latest master? That'll cause the builds to be rerun. |
src/object/cloud_particle_system.cpp
Outdated
void | ||
CloudParticleSystem::apply_fog_effect(DrawingContext& context) | ||
{ | ||
float opacity = fog_max_value * (static_cast<float>(m_current_amount) - static_cast<float>(fog_start_amount)) / (static_cast<float>(max_amount) - static_cast<float>(fog_start_amount)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's going on with all the casting? These are floats. Is it because they're const? Constants should go to the top of this cpp file and should be marked constexpr and should be written in UPPER_CASE instead.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Iirc I had some sort of warning that made VS refuse to compile
thought i had reviewed this earlier. |
Luckily, the CI failure was unrelated. |
PR reopened due to simplesquirrel.
This PR: