1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-27 14:37:16 +00:00

fixed crash on kill setting change

This commit is contained in:
Zeno Rogue 2023-08-15 20:28:06 +02:00
parent 9e999ef30f
commit 73e98644d3

View File

@ -1072,11 +1072,11 @@ EX void initConfig() {
param_b(less_in_landscape, "less_in_landscape", false) param_b(less_in_landscape, "less_in_landscape", false)
->editable("less items/kills in landscape", 'L') ->editable("less items/kills in landscape", 'L')
-> set_sets([] { dialog::get_di().reaction_final = [] { println(hlog, "Reset"); vid.killreduction = 0; }; }); -> set_reaction([] { vid.killreduction = 0; });
param_b(less_in_portrait, "less_in_portrait", false) param_b(less_in_portrait, "less_in_portrait", false)
->editable("less items/kills in portrait", 'P') ->editable("less items/kills in portrait", 'P')
-> set_sets([] { dialog::get_di().reaction_final = [] { println(hlog, "Reset"); vid.killreduction = 0; }; }); -> set_reaction([] { vid.killreduction = 0; });
// basic graphics // basic graphics