From 380a8e8edaeef713f9687d210a862f27ccb8d29f Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Tue, 18 Jun 2019 14:19:24 +0200 Subject: [PATCH] dual::mayboth when changing geometry --- geom-exp.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/geom-exp.cpp b/geom-exp.cpp index 07a9527a..c48ced3c 100644 --- a/geom-exp.cpp +++ b/geom-exp.cpp @@ -415,7 +415,7 @@ void ge_select_tiling(const vector& lst) { if(geometry == gFieldQuotient && !CAP_FIELD) continue; dialog::addBoolItem(XLAT(ginf[i].menu_displayed_name), on, letter++); dialog::lastItem().value += validclasses[land_validity(specialland).quality_level]; - dialog::add_action([i] { + dialog::add_action(dual::mayboth([i] { eGeometry targetgeometry = eGeometry(i); if(0) ; #if CAP_CRYSTAL @@ -439,9 +439,10 @@ void ge_select_tiling(const vector& lst) { } #endif }); - }); + })); } + dual::add_choice(); dialog::addBack(); dialog::display(); }