distcolors used for the P-pattern

This commit is contained in:
Zeno Rogue 2019-12-14 11:54:13 +01:00
parent fe52cb6ea9
commit c73c7a6855
1 changed files with 1 additions and 1 deletions

View File

@ -1636,7 +1636,7 @@ EX namespace patterns {
}
case 'P': {
int d = celldistance(c, currentmap->gamestart()->move(0));
color_t res = gradient(0, canvasback, 0, min(1.8/(1+d), 1.), 1);
color_t res = distcolors[d];
if(d > 3) res |= 0x1000000;
return res;
}