mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-06-29 08:22:51 +00:00
fixed the Chessboard pattern
This commit is contained in:
parent
1c4aa5ba85
commit
06c57adf4a
@ -455,8 +455,17 @@ heptagon *build_child(heptspin p, pair<int, int> adj) {
|
|||||||
int nei = neighbors_of(h);
|
int nei = neighbors_of(h);
|
||||||
h->c7 = newCell(nei, h);
|
h->c7 = newCell(nei, h);
|
||||||
h->distance = p.at->distance + 1;
|
h->distance = p.at->distance + 1;
|
||||||
if(adj.first < 2*current.N)
|
if(adj.first < 2*current.N) {
|
||||||
h->fieldval = p.at->move(0)->fieldval + (adj.second/2);
|
int s = 0;
|
||||||
|
heptspin hs(p);
|
||||||
|
while(id_of(hs.at->move(0)) >= 2 * current.N) {
|
||||||
|
s += hs.spin / 2 - 1;
|
||||||
|
hs = hs - hs.spin + wstep - 1;
|
||||||
|
}
|
||||||
|
h->fieldval = hs.at->move(0)->fieldval + s + hs.spin/2;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
h->fieldval = -100;
|
||||||
h->fiftyval = isize(archimedean_gmatrix);
|
h->fiftyval = isize(archimedean_gmatrix);
|
||||||
heptspin hs(h, 0);
|
heptspin hs(h, 0);
|
||||||
return h;
|
return h;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user