mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-23 01:41:59 -05:00
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:
parent
5d77daebf3
commit
3dddc02400
1 changed files with 1 additions and 1 deletions
|
@ -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 });
|
||||
|
|
Loading…
Reference in a new issue