From d6dddec4dc46315c69890c7ba707408bbcab7206 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Wed, 29 Jan 2020 19:04:54 +0100 Subject: [PATCH] fixup MAXMDIM --- bigstuff.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bigstuff.cpp b/bigstuff.cpp index 9d04fc2e..1a5dd4a8 100644 --- a/bigstuff.cpp +++ b/bigstuff.cpp @@ -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;