1
0
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:
Zeno Rogue 2018-03-02 13:02:10 +01:00
parent dbc15d24ff
commit f9aa220931

View File

@ -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;
}