mirror of
				https://github.com/zenorogue/hyperrogue.git
				synced 2025-11-04 07:43:02 +00:00 
			
		
		
		
	realradius() in Euclidean now acknowledges vid.alpha and sightrange
This commit is contained in:
		@@ -813,6 +813,8 @@ ld realradius() {
 | 
				
			|||||||
    else
 | 
					    else
 | 
				
			||||||
      vradius = 1e12; // use the following
 | 
					      vradius = 1e12; // use the following
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					  if(euclid)
 | 
				
			||||||
 | 
					    vradius = vid.radius * sightrange / (1 + vid.alpha) / 2.5;
 | 
				
			||||||
  vradius = min<ld>(vradius, min(vid.xres, vid.yres) / 2);
 | 
					  vradius = min<ld>(vradius, min(vid.xres, vid.yres) / 2);
 | 
				
			||||||
  return vradius;
 | 
					  return vradius;
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user