Skip to content

Commit

Permalink
GameOfLife: Don't randomize cells on board resize
Browse files Browse the repository at this point in the history
Loosing all game state for a simple resize of the board is quite
disappointing, so let's not do that. :^)
  • Loading branch information
linusg authored and awesomekling committed May 16, 2021
1 parent 7dea3d4 commit d7c0370
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion Userland/Games/GameOfLife/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
};

Expand Down

0 comments on commit d7c0370

Please sign in to comment.