mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-03-10 21:48:18 +00:00
eyelevel setting not works in the first-person shooter mode
This commit is contained in:
parent
b58c491f4d
commit
9103735be1
@ -1365,7 +1365,7 @@ EX void centerpc(ld aspd) {
|
|||||||
centerover = pc->base;
|
centerover = pc->base;
|
||||||
transmatrix T = pc->at;
|
transmatrix T = pc->at;
|
||||||
int sl = snakelevel(cwt.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);
|
View = inverse(T);
|
||||||
if(prod) NLP = inverse(pc->ori);
|
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) );
|
if(WDIM == 2) rotate_view( cspin(0, 1, M_PI) * cspin(2, 1, M_PI/2 + shmup::playerturny[id]) * spin(-M_PI/2) );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user