1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-08-31 01:37:57 +00:00

do not generate modecodes without need

This commit is contained in:
Zeno Rogue
2024-06-22 02:04:34 +02:00
parent b587851f47
commit b3d3661e13
3 changed files with 7 additions and 4 deletions

View File

@@ -511,6 +511,7 @@ EX void show_custom() {
auto m = at_or_null(modename, current_modecode);
dialog::addSelItem("name custom mode", m ? *m : "", 'N');
dialog::add_action([] {
modecode();
name_to_edit = modename[current_modecode];
dialog::edit_string(name_to_edit, "name custom mode", "");
dialog::get_di().reaction_final = [] { update_modename(name_to_edit); };