1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-06-18 11:19:59 +00:00

patDual now does not display edges which are displayed by patTriTree, patTree or patTriRings

This commit is contained in:
Zeno Rogue 2022-09-14 18:01:59 +02:00
parent c637dd4322
commit 944f5e30af

View File

@ -2639,6 +2639,15 @@ EX namespace linepatterns {
linepattern patDual("dual grid", 0xFFFFFF00, always_available, linepattern patDual("dual grid", 0xFFFFFF00, always_available,
ALLCELLS( ALLCELLS(
forCellIdEx(c2, i, c) if(way(c,i)) { forCellIdEx(c2, i, c) if(way(c,i)) {
if((patTriTree.color & 0xFF) || (PURE && (patTree.color & 0xFF))) {
cell *parent = ts::right_parent(c, curr_dist);
if(c2 == parent) continue;
cell *parent2 = ts::right_parent(c2, curr_dist);
if(c == parent2) continue;
}
if((patTriRings.color & 0xFF)) {
if(curr_dist(c2) == curr_dist(c)) continue;
}
gridlinef(V, C0, V * currentmap->adj(c, i), C0, col, 2 + vid.linequality); gridlinef(V, C0, V * currentmap->adj(c, i), C0, col, 2 + vid.linequality);
} }
) )