From 3dddc02400e61eed9fc9747ee9611a9242d29dc8 Mon Sep 17 00:00:00 2001 From: implicitfield <114500360+implicitfield@users.noreply.github.com> Date: Mon, 17 Oct 2022 20:03:48 +0300 Subject: [PATCH] 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. --- Userland/Games/2048/GameSizeDialog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Games/2048/GameSizeDialog.cpp b/Userland/Games/2048/GameSizeDialog.cpp index eb920c03a0..7fd537cacd 100644 --- a/Userland/Games/2048/GameSizeDialog.cpp +++ b/Userland/Games/2048/GameSizeDialog.cpp @@ -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 });