From 34fbe7a7bf527ddbc52090e60d835d2fbeceb768 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sun, 21 Jul 2024 12:18:35 +0200 Subject: [PATCH] rogeuviz:: do not show edge weights if not requested --- rogueviz/rogueviz.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rogueviz/rogueviz.cpp b/rogueviz/rogueviz.cpp index a8c434d9..b81a0f65 100644 --- a/rogueviz/rogueviz.cpp +++ b/rogueviz/rogueviz.cpp @@ -691,7 +691,7 @@ bool drawVertex(const shiftmatrix &V, cell *c, shmup::monster *m) { string s; ld w = hi_weight; if(vizflags & RV_INVERSE_WEIGHT) w = 1/w; - if(showlabels && hi_weight) s = vd.name + " : " + fts(w); + if(showlabels && show_edges && hi_weight) s = vd.name + " : " + fts(w); else if(showlabels) s = vd.name; else if(hi_weight) s = fts(w); queuestr(V2, labelscale, s, forecolor, (svg::in || ISWEB) ? 0 : 1);