mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-24 17:10:36 +00:00
expansion: in 'which distance' editing, mod_allowed() was acting in reverse
This commit is contained in:
parent
0da01ca11a
commit
631b3216ad
@ -474,7 +474,7 @@ void viewdist_configure_dialog() {
|
||||
gamescreen(0);
|
||||
|
||||
dialog::addSelItem("which distance", dfnames[distance_from], 'c');
|
||||
dialog::add_action([] () { distance_from = mod_allowed() ? eDistanceFrom(2 - distance_from) : eDistanceFrom((distance_from + 1) % 3); });
|
||||
dialog::add_action([] () { distance_from = mod_allowed() ? eDistanceFrom((distance_from + 1) % 3) : eDistanceFrom(2 - distance_from); });
|
||||
|
||||
dialog::addSelItem("number codes", ncnames[number_coding], 'n');
|
||||
dialog::add_action([] () { number_coding = eNumberCoding((number_coding + 1) % (mod_allowed() ? 4 : 2)); });
|
||||
|
Loading…
Reference in New Issue
Block a user