refactor: move Weather instance to WorldInfo

This commit is contained in:
MihailRis
2025-02-28 18:49:44 +03:00
parent 0ea842580c
commit 9c4db8fa10
9 changed files with 116 additions and 61 deletions
+3 -4
View File
@@ -209,11 +209,10 @@ void LevelScreen::update(float delta) {
playerController->postUpdate(delta, !inputLocked, hud->isPause());
hud->update(hudVisible);
const auto& weather = level->getWorld()->getInfo().weather;
decorator->update(
hud->isPause() ? 0.0f : delta,
*camera,
worldRenderer->weather.a,
worldRenderer->weather.b
hud->isPause() ? 0.0f : delta, *camera, weather.a, weather.b
);
}