From 8206812413e46627f421658e83dbaf2c4fff4f50 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Mon, 13 May 2019 17:16:37 +0200 Subject: [PATCH] 3D:: draw_radar adjusted for non-hyperbolic geometries --- hud.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/hud.cpp b/hud.cpp index 6dfbf36a..01eb76fa 100644 --- a/hud.cpp +++ b/hud.cpp @@ -353,7 +353,8 @@ bool nofps = false; void draw_radar(bool cornermode) { - bool d3 = WDIM == 3 || straightDownSeek || vid.fixed_yz; + bool d3 = WDIM == 3 || straightDownSeek || !vid.fixed_yz; + bool hyp = hyperbolic; dynamicval g(geometry, gEuclid); dynamicval pm(pmodel, mdUnchanged); @@ -388,10 +389,13 @@ void draw_radar(bool cornermode) { for(auto& r: radarpoints) if(d3) displaychr(int(cx + rad * r.h[0]), int(cy - rad * r.h[2]/3 + rad * r.h[1]*2/3), 0, 8, r.glyph, r.color); - else { + else if(hyp) { int siz = 1/(1+r.h[3]) * scalefactor * current_display->radius / (inHighQual ? 10 : 6); 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); + } } void drawStats() {