mirror of
				https://github.com/zenorogue/hyperrogue.git
				synced 2025-10-31 14:02:59 +00:00 
			
		
		
		
	allowChangeRange() used where it should
This commit is contained in:
		| @@ -1519,8 +1519,8 @@ bool do_draw(cell *c) { | |||||||
|   // do not display out of range cells, unless on torus |   // do not display out of range cells, unless on torus | ||||||
|   if(c->pathdist == PINFD && geometry != gTorus && vid.use_smart_range == 0) |   if(c->pathdist == PINFD && geometry != gTorus && vid.use_smart_range == 0) | ||||||
|     return false; |     return false; | ||||||
|   // do not display not fully generated cells, unless a cheater |   // do not display not fully generated cells, unless changing range allowed | ||||||
|   if(c->mpdist > 7 && !cheater && !autocheat) 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 && !cheater && !autocheat) return false; |   if(c->cpdist > 7 && yendor::on && !cheater && !autocheat) return false; | ||||||
|  |  | ||||||
|   | |||||||
| @@ -301,7 +301,7 @@ void initgame() { | |||||||
|   if(quotient || sphere) |   if(quotient || sphere) | ||||||
|     for(cell *c: currentmap->allcells()) setdist(c, 8, NULL); |     for(cell *c: currentmap->allcells()) setdist(c, 8, NULL); | ||||||
|  |  | ||||||
|   if(!cheater) { |   if(!allowChangeRange()) { | ||||||
|     gamerange_bonus = genrange_bonus = 0; |     gamerange_bonus = genrange_bonus = 0; | ||||||
|     if(vid.use_smart_range == 2) vid.use_smart_range = 1; |     if(vid.use_smart_range == 2) vid.use_smart_range = 1; | ||||||
|     } |     } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Zeno Rogue
					Zeno Rogue