mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-01-26 17:06:59 +00:00
made Yendor/Haunted sight radius consistent when the tiling is changed
This commit is contained in:
parent
9c39688b49
commit
1bdb187735
@ -2756,7 +2756,7 @@ EX bool do_draw(cell *c) {
|
|||||||
// do not display not fully generated cells, unless changing range allowed
|
// do not display not fully generated cells, unless changing range allowed
|
||||||
if(c->mpdist > 7 && !allowChangeRange()) return false;
|
if(c->mpdist > 7 && !allowChangeRange()) return false;
|
||||||
// in the Yendor Challenge, scrolling back is forbidden
|
// 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;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user