1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-06-24 22:23:18 +00:00

do not allow (generation) with allowChangeRange but no allowIncreasedSight

This commit is contained in:
Zeno Rogue 2018-11-01 21:27:38 +01:00
parent 5bc53b60a9
commit 0e79a59eee

View File

@ -624,7 +624,7 @@ void edit_sightrange() {
dialog::addBoolItem(XLAT("draw based on size in the projection (no generation)"), vid.use_smart_range == 1, 'n');
dialog::add_action([] () { vid.use_smart_range = 1; popScreen(); edit_sightrange(); });
}
if(allowChangeRange()) {
if(allowChangeRange() && allowIncreasedSight()) {
dialog::addBoolItem(XLAT("draw based on size in the projection (generation)"), vid.use_smart_range == 2, 'g');
dialog::add_action([] () { vid.use_smart_range = 2; popScreen(); edit_sightrange(); });
}