mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-30 15:39:54 +00:00
fixed Orb of Yendor generation in complex Euclidean tilings
This commit is contained in:
parent
8830770982
commit
149a08a746
15
yendor.cpp
15
yendor.cpp
@ -179,7 +179,20 @@ namespace yendor {
|
|||||||
|
|
||||||
int odir = 0;
|
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;
|
int t = -1;
|
||||||
bignum full_id;
|
bignum full_id;
|
||||||
bool onlychild = true;
|
bool onlychild = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user