fixed centerpc to use zero_d(H, DIM) instead of zero_d(H, 2)

This commit is contained in:
?
2019-09-12 22:38:42 +02:00
committed by Zeno Rogue
parent 3de228fce1
commit 5c2cb1de76
+1 -1
View File
@@ -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) {