1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-09-16 17:09:37 +00:00

rogeuviz:: do not show edge weights if not requested

This commit is contained in:
Zeno Rogue 2024-07-21 12:18:35 +02:00
parent 54f476df0d
commit 34fbe7a7bf

View File

@ -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);