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

'j' pattern: works in Nil, takes canvasback into account

This commit is contained in:
Zeno Rogue 2020-02-07 18:36:37 +01:00
parent ea55f43abf
commit 2a01728d19

View File

@ -1801,7 +1801,8 @@ EX namespace patterns {
return colortables['v'][sevenval(c)];
case 'j': {
int d = c->master->distance;
if(d % 2 == 0 || d < -5 || d > 5) return 0;
if(geometry == gNil) d = c->master->zebraval;
if(d % 2 == 0 || d < -5 || d > 5) return canvasback;
return colortables['j'][(d+5)/2];
}
case 'f': {