1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2026-04-29 12:01:23 +00:00

radarrange configurable

This commit is contained in:
Zeno Rogue
2019-07-31 17:32:44 +02:00
parent a6b71facfb
commit dc54135d5f
4 changed files with 25 additions and 8 deletions

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) {