From 22d5a2b57847d8c4dadae8800f367f7f579ff2fc Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Wed, 15 May 2019 17:35:11 +0200 Subject: [PATCH] 3D: add items to radar even if user-shaped or hidden --- graph.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/graph.cpp b/graph.cpp index 1f288571..ea9564ec 100644 --- a/graph.cpp +++ b/graph.cpp @@ -800,14 +800,14 @@ bool drawItemType(eItem it, cell *c, const transmatrix& V, color_t icol, int pti if(c && doHighlight()) poly_outline = kind_outline(it); - if(DIM == 3 && mapeditor::drawUserShape(V, mapeditor::sgItem, it, darkena(icol, 0, 0xFF), c)) return false; - - if(WDIM == 3 && c == viewctr.at->c7 && pmodel == mdPerspective && hdist0(tC0(V)) < orbsize * 0.25) return false; - #if MAXMDIM >= 4 if(c && DIM == 3) addradar(V, iinf[it].glyph, icol, kind_outline(it)); #endif + if(DIM == 3 && mapeditor::drawUserShape(V, mapeditor::sgItem, it, darkena(icol, 0, 0xFF), c)) return false; + + if(WDIM == 3 && c == viewctr.at->c7 && pmodel == mdPerspective && hdist0(tC0(V)) < orbsize * 0.25) return false; + transmatrix Vit = V; if(GDIM == 3 && WDIM == 2 && c) Vit = mscale(V, geom3::STUFF); if(DIM == 3 && c) Vit = face_the_player(Vit);