From 0361d4c53ce390960c46cc0c75bc26c70e37d8ee Mon Sep 17 00:00:00 2001 From: Artem Senichev Date: Tue, 23 Jan 2024 18:11:56 +0300 Subject: [PATCH] Fix default window aspect ratio Signed-off-by: Artem Senichev --- src/game.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/game.cpp b/src/game.cpp index e4f44b2..b6b2a7b 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -21,6 +21,7 @@ static const LevelSize level_sizes[] = { Game::Game(SDL_Window* wnd, SDL_Renderer* renderer) : window(wnd) + , layout() , render(renderer) , puzzle_mode(true) { @@ -131,7 +132,7 @@ bool Game::update() sound.play(Sound::Clatz); } - return level.state.rotation_active || !fireworks.empty(); + return level.state.rotation_active || level.state.level_complete; } void Game::draw()