1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-27 03:47:40 +00:00

Sight range increase is now allowed in some of the special modes (not only the cheat mode)

This commit is contained in:
Zeno Rogue
2017-08-18 02:58:55 +02:00
parent fef663e1b3
commit 465089333f
4 changed files with 17 additions and 3 deletions

View File

@@ -4429,11 +4429,24 @@ void drawFlashes() {
}
}
bool allowIncreasedSight() {
if(cheater) return true;
if(peace::on) return true;
#if CAP_TOUR
if(tour::on) return true;
#endif
#if CAP_ROGUEVIZ
if(rogueviz::on) return true;
#endif
if(randomPatternsMode) return true;
return false;
}
void drawthemap() {
frameid++;
if(!cheater && !svg::in && !inHighQual) {
if(!allowIncreasedSight()) {
if(sightrange > 7) sightrange = 7;
overgenerate = false;
}