diff options
author | Linus Groh <mail@linusgroh.de> | 2021-05-16 21:43:03 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-05-16 23:00:21 +0200 |
commit | d7c0370c575af51f58b3e757ab7eedaab16fc255 (patch) | |
tree | c48d46dbe10838899c420fbab9c72ca5ef52ca66 /Userland/Games | |
parent | 7dea3d41cbcc28ddaa9386411cece856ee5e7e7f (diff) | |
download | serenity-d7c0370c575af51f58b3e757ab7eedaab16fc255.zip |
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. :^)
Diffstat (limited to 'Userland/Games')
-rw-r--r-- | Userland/Games/GameOfLife/main.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
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(); }; |