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
1 changed files with 2 additions and 0 deletions

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