From c353a4bc57ce50e5c619f3935a2d33bbf9d6e52d Mon Sep 17 00:00:00 2001 From: Nat Quayle Nelson Date: Mon, 26 May 2025 14:45:10 -0500 Subject: [PATCH] note something confusing --- src/scenedit/scen.actions.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/scenedit/scen.actions.cpp b/src/scenedit/scen.actions.cpp index 08c06d3f..3b501a6d 100644 --- a/src/scenedit/scen.actions.cpp +++ b/src/scenedit/scen.actions.cpp @@ -1325,6 +1325,8 @@ static bool handle_toolpal_action(location cur_point2) { for(int i = 0; i < 10; i++) for(int j = 0; j < 6; j++) { auto cur_palette_buttons = editing_town ? town_buttons : out_buttons; + // cur_palette_buttons uses [j][i] and palette_buttons uses [i][j] -- this is not a mistake, + // just unfortunate. if(cur_palette_buttons[j][i] != PAL_BLANK && !mouse_button_held && cur_point2.in(palette_buttons[i][j]) && /*((j < 3) || (editing_town)) &&*/ (overall_mode < MODE_MAIN_SCREEN)) { rectangle temp_rect = palette_buttons[i][j];