1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2026-06-02 02:42:10 +00:00

2D3D:: better radar in Euclidean

This commit is contained in:
Zeno Rogue
2019-05-15 11:16:35 +02:00
parent dec0d191a8
commit b9fa90cafb
2 changed files with 7 additions and 2 deletions
+2 -1
View File
@@ -350,6 +350,7 @@ void drawMobileArrow(int i) {
#endif
bool nofps = false;
extern ld max_eu_dist;
void draw_radar(bool cornermode) {
@@ -406,7 +407,7 @@ void draw_radar(bool cornermode) {
displaychr(int(cx + rad * r.h[0]), int(cy - rad * r.h[1]), 0, siz, r.glyph, r.color);
}
else {
displaychr(int(cx + rad * r.h[0]), int(cy - rad * r.h[1]), 0, 8, r.glyph, r.color);
displaychr(int(cx + rad * r.h[0]), int(cy - rad * r.h[1]), 0, rad * scalefactor / (max_eu_dist + scalefactor/4) * 0.8, r.glyph, r.color);
}
}