2048: Do not decrement m_target_tile_power

This fixes an issue where the target tile would decrease each time that
the settings window was opened.
This commit is contained in:
implicitfield 2022-10-17 20:03:48 +03:00 committed by Linus Groh
parent 5d77daebf3
commit 3dddc02400

View file

@ -17,7 +17,7 @@
GameSizeDialog::GameSizeDialog(GUI::Window* parent, size_t board_size, size_t target, bool evil_ai)
: GUI::Dialog(parent)
, m_board_size(board_size)
, m_target_tile_power(AK::log2(target) - 1)
, m_target_tile_power(AK::log2(target))
, m_evil_ai(evil_ai)
{
set_rect({ 0, 0, 250, 150 });