1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-06-14 01:16:50 +00:00

changing the range in bounded or Euclidean geometry is no longer considered cheating

This commit is contained in:
Zeno Rogue 2018-04-11 13:19:21 +02:00
parent 848a135135
commit f6aaa0515a
2 changed files with 4 additions and 3 deletions

View File

@ -696,7 +696,7 @@ namespace dialog {
addBoolItem("all directional lands", conformal::do_rotate == 2, 'd');
}
if(ne.editwhat == &ne.intbuf && ne.intval == &sightrange_bonus && cheater) {
if(ne.editwhat == &ne.intbuf && ne.intval == &sightrange_bonus && allowIncreasedSight()) {
addSelItem("generation range bonus", its(genrange_bonus), 'o');
addSelItem("game range bonus", its(gamerange_bonus), 'O');
}
@ -754,11 +754,11 @@ namespace dialog {
conformal::do_rotate = 1;
else if(uni == 'd' && ne.editwhat == &conformal::rotation)
conformal::do_rotate = 2;
else if(uni == 'o' && ne.editwhat == &ne.intbuf && ne.intval == &sightrange_bonus && cheater) {
else if(uni == 'o' && ne.editwhat == &ne.intbuf && ne.intval == &sightrange_bonus && allowIncreasedSight()) {
genrange_bonus = sightrange_bonus;
doOvergenerate();
}
else if(uni == 'O' && ne.editwhat == &ne.intbuf && ne.intval == &sightrange_bonus && cheater) {
else if(uni == 'O' && ne.editwhat == &ne.intbuf && ne.intval == &sightrange_bonus && allowIncreasedSight()) {
gamerange_bonus = sightrange_bonus;
}
else if(uni == 'o' && ne.editwhat == &vid.linewidth)

View File

@ -5209,6 +5209,7 @@ bool allowIncreasedSight() {
if(rogueviz::on) return true;
#endif
if(randomPatternsMode) return true;
if(quotient || !hyperbolic) return true;
return false;
}