mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-24 09:00:34 +00:00
patterns now use the same color for the whole apeirogon
This commit is contained in:
parent
59078497dd
commit
a2f0f89c18
@ -1767,6 +1767,11 @@ EX namespace patterns {
|
|||||||
|
|
||||||
int i = callhandlers(-1, hooks_generate_canvas, c);
|
int i = callhandlers(-1, hooks_generate_canvas, c);
|
||||||
if(i != -1) return i;
|
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) {
|
switch(whichCanvas) {
|
||||||
#if CAP_CRYSTAL
|
#if CAP_CRYSTAL
|
||||||
case 'K': case '#': case '=': case 'O': case '/': case '@':
|
case 'K': case '#': case '=': case 'O': case '/': case '@':
|
||||||
|
Loading…
Reference in New Issue
Block a user