allowChangeRange() used where it should

This commit is contained in:
Zeno Rogue 2019-02-09 12:23:45 +01:00
parent 0028438a8d
commit 075ab6f1e8
2 changed files with 3 additions and 3 deletions

View File

@ -1519,8 +1519,8 @@ bool do_draw(cell *c) {
// do not display out of range cells, unless on torus
if(c->pathdist == PINFD && geometry != gTorus && vid.use_smart_range == 0)
return false;
// do not display not fully generated cells, unless a cheater
if(c->mpdist > 7 && !cheater && !autocheat) return false;
// 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 && !cheater && !autocheat) return false;

View File

@ -301,7 +301,7 @@ void initgame() {
if(quotient || sphere)
for(cell *c: currentmap->allcells()) setdist(c, 8, NULL);
if(!cheater) {
if(!allowChangeRange()) {
gamerange_bonus = genrange_bonus = 0;
if(vid.use_smart_range == 2) vid.use_smart_range = 1;
}