1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2026-04-24 17:51:22 +00:00

cth to handle heptspin/cellwalker translations in a nice way

This commit is contained in:
Zeno Rogue
2018-08-30 16:04:28 +02:00
parent 993ef1b164
commit a04eef75a9
6 changed files with 15 additions and 19 deletions

View File

@@ -438,7 +438,7 @@ struct hrmap_archimedean : hrmap {
parent_index_of(origin) = DUAL ? 1 : 0;
id_of(origin) = id;
origin->c7 = newCell(DUAL ? N0/2 : N0, origin);
origin->c7 = newCell(N0/DUALMUL, origin);
heptagon *alt = NULL;
@@ -517,7 +517,7 @@ heptagon *build_child(heptspin p, pair<int, int> adj) {
id_of(h) = adj.first;
parent_index_of(h) = adj.second;
int nei = neighbors_of(h);
h->c7 = newCell(DUAL ? nei/2 : nei, h);
h->c7 = newCell(nei/DUALMUL, h);
h->distance = p.at->distance + 1;
if(adj.first < 2*current.N && !DUAL) {
int s = 0;