1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-08-30 17:27:57 +00:00

subrule 3D maps implemented

This commit is contained in:
Zeno Rogue
2022-07-13 19:30:36 +02:00
parent 7252b04626
commit 6bc3dc9d6f
4 changed files with 198 additions and 24 deletions

View File

@@ -117,10 +117,11 @@ void expansion_analyzer::preliminary_grouping() {
#if MAXMDIM >= 4
rootid = reg3::rule_get_root(0);
auto& chi = reg3::rule_get_children();
N = isize(chi) / S7;
auto& chpos = reg3::rule_get_childpos();
N = isize(chpos) - 1;
children.resize(N);
int k = 0;
for(int i=0; i<N; i++) for(int j=0; j<S7; j++) {
for(int i=0; i<N; i++) for(int j=0; j<chpos[i+1]-chpos[i]; j++) {
int ck = chi[k];
if(ck < -1) ck += (1<<16);
if(ck >= 0)