1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-12-16 19:18:05 +00:00

init_heptagon fixup

This commit is contained in:
Zeno Rogue
2021-07-04 10:39:55 +02:00
parent 74486309a6
commit f873a4ba18
2 changed files with 5 additions and 25 deletions

View File

@@ -122,15 +122,12 @@ EX namespace bt {
}
EX heptagon *build(heptagon *parent, int d, int d1, int t, int side, int delta) {
auto h = buildHeptagon1(tailored_alloc<heptagon> (t), parent, d, hsA, d1);
auto h = buildHeptagon1(init_heptagon(t), parent, d, hsA, d1);
h->distance = parent->distance + delta;
h->dm4 = parent->dm4 + delta;
h->c7 = NULL;
if(parent->c7) h->c7 = newCell(t, h);
h->cdata = NULL;
h->zebraval = side;
h->emeraldval = 0;
h->fieldval = 0;
switch(geometry) {
case gBinary4:
if(d < 2)