From 9103735be19962ea19078cca77649853576e9676 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Wed, 8 Jul 2020 12:41:14 +0200 Subject: [PATCH] eyelevel setting not works in the first-person shooter mode --- hypgraph.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hypgraph.cpp b/hypgraph.cpp index 8054db8a..dc02b614 100644 --- a/hypgraph.cpp +++ b/hypgraph.cpp @@ -1365,7 +1365,7 @@ EX void centerpc(ld aspd) { centerover = pc->base; transmatrix T = pc->at; int sl = snakelevel(cwt.at); - if(sl && WDIM == 2) T = T * zpush(cgi.SLEV[sl] - cgi.FLOOR); + if((sl || vid.eye) && WDIM == 2) T = T * zpush(cgi.SLEV[sl] - cgi.FLOOR + vid.eye); View = inverse(T); if(prod) NLP = inverse(pc->ori); if(WDIM == 2) rotate_view( cspin(0, 1, M_PI) * cspin(2, 1, M_PI/2 + shmup::playerturny[id]) * spin(-M_PI/2) );