mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2026-10-26 02:34:26 +00:00
centering/TPP/camera cleanup
This commit is contained in:
1 parent
5fbdeaa89d
commit
44194bd354
3 files changed
+20
-31
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user