From 0e6db296360cafac58c75529b9d1f5c9f6fc054a Mon Sep 17 00:00:00 2001 From: Nat Quayle Nelson Date: Thu, 12 Jun 2025 17:35:01 -0500 Subject: [PATCH] mark 3 places where a bug can happen --- src/scenedit/scen.actions.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/scenedit/scen.actions.cpp b/src/scenedit/scen.actions.cpp index e33bca26..d0126a39 100644 --- a/src/scenedit/scen.actions.cpp +++ b/src/scenedit/scen.actions.cpp @@ -1465,6 +1465,8 @@ static bool handle_terpal_action(location cur_point, bool option_hit) { } switch(draw_mode){ case DRAW_TERRAIN: + // TODO this is wrong--left/right buttons followed by cancel with the new one selected + // could result in unrecordedly deleting a new terrain that was confirmed if(!edit_ter_type(i)){ // Canceled editing if(i == size_before){ @@ -1481,6 +1483,8 @@ static bool handle_terpal_action(location cur_point, bool option_hit) { } break; case DRAW_MONST: + // TODO this is wrong--left/right buttons followed by cancel with the new one selected + // could result in unrecordedly deleting a new monster that was confirmed if(!edit_monst_type(i)){ // Canceled editing if(i == size_before){ @@ -1497,6 +1501,8 @@ static bool handle_terpal_action(location cur_point, bool option_hit) { } break; case DRAW_ITEM: + // TODO this is wrong--left/right buttons followed by cancel with the new one selected + // could result in unrecordedly deleting a new item that was confirmed if(!edit_item_type(i)){ // Canceled editing if(i == size_before){