1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-25 01:20:37 +00:00

dual::mayboth when changing geometry

This commit is contained in:
Zeno Rogue 2019-06-18 14:19:24 +02:00
parent 2b2c07a0e7
commit 380a8e8eda

View File

@ -415,7 +415,7 @@ void ge_select_tiling(const vector<eGeometry>& lst) {
if(geometry == gFieldQuotient && !CAP_FIELD) continue; if(geometry == gFieldQuotient && !CAP_FIELD) continue;
dialog::addBoolItem(XLAT(ginf[i].menu_displayed_name), on, letter++); dialog::addBoolItem(XLAT(ginf[i].menu_displayed_name), on, letter++);
dialog::lastItem().value += validclasses[land_validity(specialland).quality_level]; dialog::lastItem().value += validclasses[land_validity(specialland).quality_level];
dialog::add_action([i] { dialog::add_action(dual::mayboth([i] {
eGeometry targetgeometry = eGeometry(i); eGeometry targetgeometry = eGeometry(i);
if(0) ; if(0) ;
#if CAP_CRYSTAL #if CAP_CRYSTAL
@ -439,9 +439,10 @@ void ge_select_tiling(const vector<eGeometry>& lst) {
} }
#endif #endif
}); });
}); }));
} }
dual::add_choice();
dialog::addBack(); dialog::addBack();
dialog::display(); dialog::display();
} }