mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-02-23 06:20:09 +00:00
fixed race generation in complex Euclidean tilings
This commit is contained in:
parent
149a08a746
commit
cbce59d5d2
@ -267,6 +267,10 @@ void generate_track() {
|
||||
|
||||
setdist(s, 6, NULL);
|
||||
makeEmpty(s);
|
||||
cview(); // needed for some virtualRebases
|
||||
|
||||
if(euclid && (penrose || archimedean)) permanent_long_distances(s);
|
||||
compute_saved_distances(s, 300, 1000000);
|
||||
|
||||
map<cell*, cell*> parent;
|
||||
map<int, vector<cell*> > cellbydist;
|
||||
@ -303,6 +307,8 @@ void generate_track() {
|
||||
}
|
||||
}
|
||||
|
||||
if(euclid && (penrose || archimedean)) permanent_long_distances(goal);
|
||||
|
||||
try {
|
||||
track = build_shortest_path(s, goal);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user