fixed fielval_uniq for 3d geometries

This commit is contained in:
Zeno Rogue 2019-03-16 22:18:41 +01:00
parent af0435e209
commit 38559b304b
2 changed files with 2 additions and 1 deletions

View File

@ -369,6 +369,7 @@ int fieldval_uniq(cell *c) {
}
else if(binarytiling || archimedean) return 0;
else if(&currfp == &fp_invalid) return 0;
else if(DIM == 3) return c->master->fieldval;
else if(ctof(c) || NONSTDVAR) return c->master->fieldval/S7;
else {
int z = 0;

View File

@ -670,7 +670,7 @@ namespace reg3 {
}
if(DEB) println(hlog, "-> not found");
int d2 = 0, fv = 0;
int d2 = 0, fv = isize(reg_gmatrix);
#if CAP_FIELD
if(hyperbolic) {
auto cp = counterpart(parent);