From 3e6dbd9f4fc3578d602f8992920fa8a056f4c17d Mon Sep 17 00:00:00 2001 From: Nat Quayle Nelson Date: Wed, 3 Sep 2025 12:03:19 -0500 Subject: [PATCH] fix 'remove frills' prompting town entrance/sign text change --- src/scenedit/scen.actions.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/scenedit/scen.actions.cpp b/src/scenedit/scen.actions.cpp index 52faf7bf0..b7f97ccc5 100644 --- a/src/scenedit/scen.actions.cpp +++ b/src/scenedit/scen.actions.cpp @@ -2545,12 +2545,15 @@ void unfrill_terrain() { for(short i = 0; i < cur_area->max_dim; i++) for(short j = 0; j < cur_area->max_dim; j++) { terrain_type = cur_area->terrain(i,j); + bool changed = false; cTerrain& ter = scenario.ter_types[terrain_type]; - if(ter.frill_for >= 0) + if(ter.frill_for >= 0){ terrain_type = ter.frill_for; + changed = true; + } - set_terrain(loc(i, j), terrain_type, changes); + if(changed) set_terrain(loc(i, j), terrain_type, changes); } undo_list.add(action_ptr(new aDrawTerrain("Remove Terrain Frills", changes))); update_edit_menu();