1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-23 21:07:17 +00:00

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

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