mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-25 17:40:36 +00:00
rogeuviz:: do not show edge weights if not requested
This commit is contained in:
parent
54f476df0d
commit
34fbe7a7bf
@ -691,7 +691,7 @@ bool drawVertex(const shiftmatrix &V, cell *c, shmup::monster *m) {
|
|||||||
string s;
|
string s;
|
||||||
ld w = hi_weight;
|
ld w = hi_weight;
|
||||||
if(vizflags & RV_INVERSE_WEIGHT) w = 1/w;
|
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(showlabels) s = vd.name;
|
||||||
else if(hi_weight) s = fts(w);
|
else if(hi_weight) s = fts(w);
|
||||||
queuestr(V2, labelscale, s, forecolor, (svg::in || ISWEB) ? 0 : 1);
|
queuestr(V2, labelscale, s, forecolor, (svg::in || ISWEB) ? 0 : 1);
|
||||||
|
Loading…
Reference in New Issue
Block a user