mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-25 01:20:37 +00:00
3D:: yendor works (?)
This commit is contained in:
parent
85cb1bbb11
commit
7fadb7f98f
@ -387,6 +387,7 @@ int type_in_quick(expansion_analyzer& ea, cell *c, const cellfunction& f) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool sizes_known() {
|
bool sizes_known() {
|
||||||
|
if(DIM == 3) return false;
|
||||||
if(bounded) return false;
|
if(bounded) return false;
|
||||||
// Castle Anthrax is infinite
|
// Castle Anthrax is infinite
|
||||||
if(binarytiling) return false;
|
if(binarytiling) return false;
|
||||||
|
14
yendor.cpp
14
yendor.cpp
@ -266,6 +266,20 @@ namespace yendor {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
else if(DIM == 3) {
|
||||||
|
int d = celldistance(nyi.path[0], ycw.at);
|
||||||
|
vector<cell*> next;
|
||||||
|
forCellCM(c, ycw.at) if(celldistance(nyi.path[0], c) > d) next.push_back(c);
|
||||||
|
if(!isize(next)) {
|
||||||
|
printf("error: no more cells");
|
||||||
|
ycw.at = ycw.at->move(hrand(ycw.at->type));
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
ycw.at = next[hrand(isize(next))];
|
||||||
|
}
|
||||||
|
nyi.path[i+1] = ycw.at;
|
||||||
|
}
|
||||||
|
|
||||||
else {
|
else {
|
||||||
// stupid
|
// stupid
|
||||||
ycw += rev;
|
ycw += rev;
|
||||||
|
Loading…
Reference in New Issue
Block a user