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

simplified and generalized cdata

This commit is contained in:
Zeno Rogue
2019-07-21 22:56:10 +02:00
parent a5dc6d40e6
commit d1fb9f3564
8 changed files with 92 additions and 66 deletions

View File

@@ -90,8 +90,9 @@ namespace binary {
ld horohex_scale = 0.6;
heptagon *build(heptagon *parent, int d, int d1, int t, int side, int delta) {
auto h = buildHeptagon1(tailored_alloc<heptagon> (t), parent, d, hsOrigin, d1);
auto h = buildHeptagon1(tailored_alloc<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;