1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-09-11 23:06:00 +00:00

subrule 3D maps implemented

This commit is contained in:
Zeno Rogue
2022-07-13 19:30:36 +02:00
parent 7252b04626
commit 6bc3dc9d6f
4 changed files with 198 additions and 24 deletions

View File

@@ -677,7 +677,7 @@ EX int updir(heptagon *h) {
#endif
#if MAXMDIM >= 4
if(WDIM == 3 && reg3::in_rule()) {
for(int i=0; i<S7; i++) if(h->move(i) && h->move(i)->distance < h->distance)
for(int i=0; i<h->type; i++) if(h->move(i) && h->move(i)->distance < h->distance)
return i;
return -1;
}