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

fixup MAXMDIM

This commit is contained in:
Zeno Rogue 2020-01-29 19:04:54 +01:00
parent 9d2d7fbde8
commit d6dddec4dc

View File

@ -262,9 +262,11 @@ EX heptagon *createAlternateMap(cell *c, int rad, hstate firststate, int special
bf += revstep;
if(flip && hrand(2) == 0) { bf += flip; flip *= -1; }
#if MAXMDIM >= 4
// in 3D honeycombs we vary the direction, but never for three successive i's
if(WDIM == 3 && firststate == hsOrigin && (i%3))
bf.spin = hrandom_adjacent(bf.spin);
#endif
}
cx[rad] = bf.at;
heptagon *h = bf.at->master;