eyelevel setting not works in the first-person shooter mode

This commit is contained in:
Zeno Rogue 2020-07-08 12:41:14 +02:00
parent b58c491f4d
commit 9103735be1
1 changed files with 1 additions and 1 deletions

View File

@ -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) );