mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-23 21:07:17 +00:00
fixed a crash in paracompact honeycombs
This commit is contained in:
parent
1ecd525217
commit
c3928fdc01
4
reg3.cpp
4
reg3.cpp
@ -1566,8 +1566,8 @@ EX void construct_relations() {
|
||||
int last_i = -1;
|
||||
for(hyperpoint h: reg3::cellshape) {
|
||||
int i = 0, j = 0;
|
||||
for(hyperpoint u: reg3::cellshape) if(hdist(h, full_X*u) < 1e-4) i++;
|
||||
for(hyperpoint u: reg3::cellshape) if(hdist(h, full_R*u) < 1e-4) j++;
|
||||
for(hyperpoint u: reg3::cellshape) if(hdist(h, full_X*u) < 5e-2) i++;
|
||||
for(hyperpoint u: reg3::cellshape) if(hdist(h, full_R*u) < 5e-2) j++;
|
||||
if(last_i == -1) last_i = i;
|
||||
if(i != j || i != last_i) ok = false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user