mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-14 01:14:48 +00:00
realradius() in Euclidean now acknowledges vid.alpha and sightrange
This commit is contained in:
parent
dbc15d24ff
commit
f9aa220931
@ -813,6 +813,8 @@ ld realradius() {
|
||||
else
|
||||
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);
|
||||
return vradius;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user