1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-06-24 06:03:23 +00:00

fixed Orb of Yendor generation in complex Euclidean tilings

This commit is contained in:
Zeno Rogue 2019-08-02 18:00:03 +02:00
parent 8830770982
commit 149a08a746

View File

@ -179,7 +179,20 @@ namespace yendor {
int odir = 0;
if(true) {
if(euclid && (penrose || archimedean)) {
permanent_long_distances(yendor);
auto at = random_in_distance(yendor, YDIST-1);
permanent_long_distances(at);
for(int a=YDIST-2; a>=0; a--) {
nyi.path[a+1] = at;
vector<cell*> prev;
forCellCM(c2, at) if(celldistance(yendor, c2) == a) prev.push_back(c2);
if(isize(prev)) at = prev[hrand(isize(prev))];
}
nyi.path[0] = yendor;
}
else {
int t = -1;
bignum full_id;
bool onlychild = true;