diff --git a/hypgraph.cpp b/hypgraph.cpp index a19a8126..b2a9d854 100644 --- a/hypgraph.cpp +++ b/hypgraph.cpp @@ -1059,7 +1059,7 @@ void centerpc(ld aspd) { ors::unrotate(cwtV); ors::unrotate(View); hyperpoint H = ypush(-vid.yshift) * sphereflip * tC0(cwtV); - ld R = zero_d(H, 2) ? 0 : hdist0(H); // = sqrt(H[0] * H[0] + H[1] * H[1]); + ld R = zero_d(H, DIM) ? 0 : hdist0(H); if(R < 1e-9) { // either already centered or direction unknown /* if(playerfoundL && playerfoundR) {