mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-20 03:54:47 +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) {
|
||||
tree_edge = add_edgetype("tree edge");
|
||||
fname = fn;
|
||||
init(); kind = kTree;
|
||||
tree_edge = add_edgetype("tree edge");
|
||||
printf("Reading the tree of life...\n");
|
||||
FILE *f = fopen(fname.c_str(), "rt");
|
||||
if(!f) { printf("Failed to open tree file: %s\n", fname.c_str()); exit(1); }
|
||||
@ -473,7 +473,7 @@ namespace tree {
|
||||
vd.cp = dftcolor;
|
||||
|
||||
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++) {
|
||||
|
Loading…
Reference in New Issue
Block a user