HUD hide mode fix

This commit is contained in:
MihailRis
2024-01-12 13:21:40 +03:00
parent faabb8178a
commit 31b0349757
3 changed files with 30 additions and 14 deletions
+2 -2
View File
@@ -139,8 +139,7 @@ void LevelScreen::update(float delta) {
level->world->updateTimers(delta);
}
controller->update(delta, !inputLocked, hud->isPause());
if (hudVisible)
hud->update();
hud->update(hudVisible);
}
void LevelScreen::draw(float delta) {
@@ -151,6 +150,7 @@ void LevelScreen::draw(float delta) {
worldRenderer->draw(ctx, camera.get(), hudVisible);
hud->drawOverlay(ctx);
if (hudVisible) {
hud->draw(ctx);
if (level->player->debug) {