From f9aa220931fc4e19644d1393902002e1f5bec198 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Fri, 2 Mar 2018 13:02:10 +0100 Subject: [PATCH] realradius() in Euclidean now acknowledges vid.alpha and sightrange --- basegraph.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/basegraph.cpp b/basegraph.cpp index 38bec9a5..ab619d7e 100644 --- a/basegraph.cpp +++ b/basegraph.cpp @@ -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(vradius, min(vid.xres, vid.yres) / 2); return vradius; }