From a2f0f89c18f87d1e9e5f85c5224469b89d5169ac Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sat, 23 Apr 2022 00:57:57 +0200 Subject: [PATCH] patterns now use the same color for the whole apeirogon --- pattern2.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pattern2.cpp b/pattern2.cpp index 9bd113f8..23a8c42d 100644 --- a/pattern2.cpp +++ b/pattern2.cpp @@ -1767,6 +1767,11 @@ EX namespace patterns { int i = callhandlers(-1, hooks_generate_canvas, c); if(i != -1) return i; + if(arb::is_apeirogonal(c)) { + for(cell *c1: {c->move(c->type-1), c->move(c->type-2), c->cmove(c->type-1)->move(c->type-1), c->cmove(c->type-2)->move(c->type-2)}) + if(c1 && c1->mpdist <= BARLEV) return c1->landparam; + } + switch(whichCanvas) { #if CAP_CRYSTAL case 'K': case '#': case '=': case 'O': case '/': case '@':