factored generate_random_path from yendor out

This commit is contained in:
Zeno Rogue
2021-07-31 15:14:31 +02:00
parent f567f0012b
commit d7a7447699
4 changed files with 215 additions and 189 deletions
+1 -1
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];