From 0f131e2504c1ff6dcd64fb11bdcf48cdebc6a4ec Mon Sep 17 00:00:00 2001 From: Christoph Urlacher Date: Thu, 19 Feb 2026 21:19:17 +0100 Subject: [PATCH] fix incorrectly added state transition on board reset --- src/main.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.cpp b/src/main.cpp index 27cec7f..474bf93 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -309,6 +309,7 @@ auto main(int argc, char *argv[]) -> int { previous_state = board.state; } else if (IsKeyPressed(KEY_R)) { board = generators[current_preset](); + previous_state = board.state; } else if (IsKeyPressed(KEY_C)) { solve_closure(masssprings, board); renderer.UpdateWinningStates(masssprings, win_conditions[current_preset]);