mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-01-11 09:50:34 +00:00
fixed the crash with four... geometries (appeared on OSX)
This commit is contained in:
parent
09adfbdc45
commit
86077105b1
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user