fix incorrectly added state transition on board reset

This commit is contained in:
2026-02-19 21:19:17 +01:00
parent 55ff0f3490
commit 0f131e2504

View File

@ -309,6 +309,7 @@ auto main(int argc, char *argv[]) -> int {
previous_state = board.state; previous_state = board.state;
} else if (IsKeyPressed(KEY_R)) { } else if (IsKeyPressed(KEY_R)) {
board = generators[current_preset](); board = generators[current_preset]();
previous_state = board.state;
} else if (IsKeyPressed(KEY_C)) { } else if (IsKeyPressed(KEY_C)) {
solve_closure(masssprings, board); solve_closure(masssprings, board);
renderer.UpdateWinningStates(masssprings, win_conditions[current_preset]); renderer.UpdateWinningStates(masssprings, win_conditions[current_preset]);