centering/TPP/camera cleanup

This commit is contained in:
Zeno Rogue committed 2019-09-12 22:49:50 +02:00
1 parent 5fbdeaa89d
commit 44194bd354
3 files changed
+20 -31

No files matched your search

-12
View File
@@ -1100,19 +1100,7 @@ void centerpc(ld aspd) {
int sl = snakelevel(cwt.at);
if(sl) T = T * zpush(geom3::SLEV[sl] - geom3::FLOOR);
View = inverse(T);
if(vid.yshift) View = cpush(2, wall_radar(viewctr.at->c7, T)) * View;
if(WDIM == 2) View = cspin(0, 1, M_PI) * cspin(2, 1, M_PI/2 + shmup::playerturny[id]) * spin(-M_PI/2) * View;
#if CAP_RACING
if(racing::on) racing::set_view();
#endif
return;
}
#endif
#if CAP_RACING
if(racing::on && !racing::standard_centering) {
racing::set_view();
return;
}
#endif