made Yendor/Haunted sight radius consistent when the tiling is changed

This commit is contained in:
Zeno Rogue 2022-02-21 22:47:22 +01:00
parent 9c39688b49
commit 1bdb187735
1 changed files with 1 additions and 1 deletions

View File

@ -2756,7 +2756,7 @@ EX bool do_draw(cell *c) {
// do not display not fully generated cells, unless changing range allowed
if(c->mpdist > 7 && !allowChangeRange()) return false;
// in the Yendor Challenge, scrolling back is forbidden
if(c->cpdist > 7 && (yendor::on || isHaunted(cwt.at->land)) && !cheater && !autocheat) return false;
if(c->cpdist > get_sightrange() && (yendor::on || isHaunted(cwt.at->land)) && !cheater && !autocheat) return false;
return true;
}