1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-30 15:39:54 +00:00

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

View File

@ -1636,7 +1636,7 @@ EX namespace patterns {
} }
case 'P': { case 'P': {
int d = celldistance(c, currentmap->gamestart()->move(0)); 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; if(d > 3) res |= 0x1000000;
return res; return res;
} }