radarrange configurable

This commit is contained in:
Zeno Rogue
2019-09-12 22:50:11 +02:00
parent a6b71facfb
commit dc54135d5f
4 changed files with 25 additions and 8 deletions
+1 -2
View File
@@ -351,7 +351,6 @@ void drawMobileArrow(int i) {
#endif
bool nofps = false;
extern ld max_eu_dist;
void draw_radar(bool cornermode) {
@@ -405,7 +404,7 @@ void draw_radar(bool cornermode) {
else if(hyp)
return point3(cx + rad * h[0], cy + rad * h[1], 1/(1+h[3]) * cgi.scalefactor * current_display->radius / (inHighQual ? 10 : 6));
else
return point3(cx + rad * h[0], cy + rad * h[1], rad * cgi.scalefactor / (max_eu_dist + cgi.scalefactor/4) * 0.8);
return point3(cx + rad * h[0], cy + rad * h[1], rad * cgi.scalefactor / (vid.radarrange + cgi.scalefactor/4) * 0.8);
};
for(auto& r: radarlines) {