1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2026-04-24 01:41:21 +00:00

rewritten the o-key functionality to let the user choose from several applicable options

This commit is contained in:
Zeno Rogue
2020-05-15 15:53:29 +02:00
parent 437722fe58
commit ed6cd3cec6
8 changed files with 46 additions and 37 deletions

View File

@@ -1228,9 +1228,8 @@ EX void configure_race() {
}
auto hooks1 =
addHook(hooks_o_key, 90, [] {
if(racing::on) { set_race_configurer(); return named_dialog(XLAT("racing menu"), raceconfigurer); }
else return named_functionality();
addHook(hooks_o_key, 90, [] (o_funcs& v) {
if(racing::on) { set_race_configurer(); v.push_back(named_dialog(XLAT("racing menu"), raceconfigurer)); }
});
map<string, map<eLand, int> > scoreboard;