mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-11-05 16:23:06 +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