1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-24 02:17:40 +00:00

factored generate_random_path from yendor out

This commit is contained in:
Zeno Rogue
2021-07-31 11:55:27 +02:00
parent f567f0012b
commit d7a7447699
4 changed files with 215 additions and 189 deletions

View File

@@ -1818,7 +1818,7 @@ EX namespace patterns {
}
case 'P': {
cell *s = currentmap->gamestart()->move(0);
if(yendor::exhaustive_distance_appropriate() && !keep_distances_from.count(s))
if(exhaustive_distance_appropriate() && !keep_distances_from.count(s))
permanent_long_distances(s);
int d = celldistance(s, c);
color_t res = distcolors[d];