mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-04 00:27:47 +00: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
Notes:
sideshowbarker
2024-07-17 05:23:44 +09:00
Author: https://github.com/implicitfield
Commit: 3dddc02400
Pull-request: https://github.com/SerenityOS/serenity/pull/15671
Reviewed-by: https://github.com/trflynn89 ✅
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)
|
GameSizeDialog::GameSizeDialog(GUI::Window* parent, size_t board_size, size_t target, bool evil_ai)
|
||||||
: GUI::Dialog(parent)
|
: GUI::Dialog(parent)
|
||||||
, m_board_size(board_size)
|
, 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)
|
, m_evil_ai(evil_ai)
|
||||||
{
|
{
|
||||||
set_rect({ 0, 0, 250, 150 });
|
set_rect({ 0, 0, 250, 150 });
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue