mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2026-02-04 08:50:15 +00:00
pattern 'P' now uses permanent_long_distances
This commit is contained in:
@@ -1635,7 +1635,10 @@ EX namespace patterns {
|
||||
return res;
|
||||
}
|
||||
case 'P': {
|
||||
int d = celldistance(c, currentmap->gamestart()->move(0));
|
||||
cell *s = currentmap->gamestart()->move(0);
|
||||
if(yendor::exhaustive_distance_appropriate() && !keep_distances_from.count(s))
|
||||
permanent_long_distances(s);
|
||||
int d = celldistance(s, c);
|
||||
color_t res = distcolors[d];
|
||||
if(d > 3) res |= 0x1000000;
|
||||
return res;
|
||||
|
||||
Reference in New Issue
Block a user