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:
15
graph.cpp
15
graph.cpp
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user