mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-02-17 11:30:09 +00:00
patDual now does not display edges which are displayed by patTriTree, patTree or patTriRings
This commit is contained in:
parent
c637dd4322
commit
944f5e30af
@ -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);
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user