Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
diff --git a/src/game.cpp b/src/game.cpp
index daf2eb6b..edf80cfc 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -3999,14 +3999,10 @@ void Game::updateFrame(ProfilerGraph *graph, RunStats *stats, f32 dtime,
*/
if (clouds) {
v3f player_position = player->getPosition();
- if (sky->getCloudsVisible()) {
- clouds->setVisible(true);
- clouds->step(dtime);
- clouds->update(v2f(player_position.X, player_position.Z),
- sky->getCloudColor());
- } else {
- clouds->setVisible(false);
- }
+ clouds->setVisible(true);
+ clouds->step(dtime);
+ clouds->update(v2f(player_position.X, player_position.Z),
+ sky->getCloudColor());
}
/*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment