From c0684ac3c852f230d69928e42fe6217dbe1ae357 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Mon, 13 May 2019 17:15:49 +0200 Subject: [PATCH] 3D:: eyepos was calculated in wrong position --- 3d-models.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/3d-models.cpp b/3d-models.cpp index ebfa485b..dc7882a2 100644 --- a/3d-models.cpp +++ b/3d-models.cpp @@ -738,7 +738,6 @@ hyperpoint psmin(hyperpoint H) { } void adjust_eye(hpcshape& eye, hpcshape head, ld shift_eye, ld shift_head, int q, ld zoom=1) { - eyepos = WDIM == 2 ? 0.875 : 0.925; using namespace hyperpoint_vec; hyperpoint center = Hypc; for(int i=eye.s; i 0) center += hpc[i]; @@ -836,6 +835,7 @@ void make_shadow(hpcshape& sh) { void make_3d_models() { if(DIM == 2) return; + eyepos = WDIM == 2 ? 0.875 : 0.925; DEBBI(DF_POLY, ("make_3d_models")); shcenter = C0;