From 631b3216ad7c5a2852012cd0f7cb9fe27ef482e0 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sun, 23 Sep 2018 14:39:02 +0200 Subject: [PATCH] expansion: in 'which distance' editing, mod_allowed() was acting in reverse --- expansion.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/expansion.cpp b/expansion.cpp index 35876be5..d7502278 100644 --- a/expansion.cpp +++ b/expansion.cpp @@ -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)); });