mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-25 17:40:36 +00:00
fixed an error computing distances in bitruncated {5,4} causing crashes
This commit is contained in:
parent
65883a53cf
commit
fa03b4f275
@ -137,7 +137,7 @@ heptagon *buildHeptagon(heptagon *parent, int d, hstate s, int pard = 0, int fix
|
|||||||
int d1 = (d+S7-1)%S7;
|
int d1 = (d+S7-1)%S7;
|
||||||
bool missing0 = !h->move(0)->move(d1);
|
bool missing0 = !h->move(0)->move(d1);
|
||||||
if(missing0) {
|
if(missing0) {
|
||||||
if(s == 1)
|
if(s == 1 && h->move(0)->s != hsOrigin)
|
||||||
h->distance = h->move(0)->distance + 1;
|
h->distance = h->move(0)->distance + 1;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
Loading…
Reference in New Issue
Block a user