mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-01-04 14:30:35 +00:00
rogueviz:: fixed tree edges in tree(oflife) visualization
This commit is contained in:
parent
a06f9dfc12
commit
ab58fef9cf
@ -441,9 +441,9 @@ namespace tree {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void read(string fn) {
|
void read(string fn) {
|
||||||
tree_edge = add_edgetype("tree edge");
|
|
||||||
fname = fn;
|
fname = fn;
|
||||||
init(); kind = kTree;
|
init(); kind = kTree;
|
||||||
|
tree_edge = add_edgetype("tree edge");
|
||||||
printf("Reading the tree of life...\n");
|
printf("Reading the tree of life...\n");
|
||||||
FILE *f = fopen(fname.c_str(), "rt");
|
FILE *f = fopen(fname.c_str(), "rt");
|
||||||
if(!f) { printf("Failed to open tree file: %s\n", fname.c_str()); exit(1); }
|
if(!f) { printf("Failed to open tree file: %s\n", fname.c_str()); exit(1); }
|
||||||
@ -473,7 +473,7 @@ namespace tree {
|
|||||||
vd.cp = dftcolor;
|
vd.cp = dftcolor;
|
||||||
|
|
||||||
if(tol[i].parent >= 0)
|
if(tol[i].parent >= 0)
|
||||||
addedge(i, tol[i].parent, 0, true, tree_edge);
|
addedge(i, tol[i].parent, 1, true, tree_edge);
|
||||||
}
|
}
|
||||||
|
|
||||||
for(int i=0; i<isize(vdata); i++) {
|
for(int i=0; i<isize(vdata); i++) {
|
||||||
|
Loading…
Reference in New Issue
Block a user