From d7c0370c575af51f58b3e757ab7eedaab16fc255 Mon Sep 17 00:00:00 2001 From: Linus Groh Date: Sun, 16 May 2021 21:43:03 +0100 Subject: [PATCH] GameOfLife: Don't randomize cells on board resize Loosing all game state for a simple resize of the board is quite disappointing, so let's not do that. :^) --- Userland/Games/GameOfLife/main.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/Userland/Games/GameOfLife/main.cpp b/Userland/Games/GameOfLife/main.cpp index 505607c502..aebb038bcd 100644 --- a/Userland/Games/GameOfLife/main.cpp +++ b/Userland/Games/GameOfLife/main.cpp @@ -58,7 +58,6 @@ int main(int argc, char** argv) auto size_changed_function = [&] { statusbar.set_text(click_tip); board_widget.resize_board(rows_spinbox.value(), columns_spinbox.value()); - board_widget.randomize_cells(); board_widget.update(); };