mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2026-11-26 08:07:10 +00:00
fixed the crash with four... geometries (appeared on OSX)
This commit is contained in:
1 parent
09adfbdc45
commit
86077105b1
1 file changed
+1
-1
+1
-1
@@ -113,7 +113,7 @@ heptagon *buildHeptagon(heptagon *parent, int d, hstate s, int pard = 0, int fix
|
||||
if(h1->distance <= h->move[0]->distance)
|
||||
h->distance = h->move[0]->distance+1;
|
||||
}
|
||||
if(h->spin(0) == S7-1)
|
||||
if(h->spin(0) == S7-1 && h->move[0]->distance != 0)
|
||||
h->distance = min(
|
||||
h->move[0]->move[0]->distance + 2,
|
||||
createStep(h, S7-1)->distance + 1
|
||||
|
||||
Reference in new issue
Block a user