1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-06-16 18:29:59 +00:00

3D:: no more autocentering if vid.sspeed <= -5

This commit is contained in:
? 2019-02-26 12:29:27 +01:00 committed by Zeno Rogue
parent 9b968e648b
commit 85cb1bbb11

View File

@ -1039,7 +1039,7 @@ void centerpc(ld aspd) {
crystal::centerrug(aspd);
#endif
if(shmup::on && DIM == 3) {
if(shmup::on && DIM == 3 && vid.sspeed > -5) {
transmatrix at = cpush(2, -vid.yshift) * ggmatrix(shmup::pc[0]->base) * shmup::pc[0]->at;
View = inverse(at) * View;
return;