mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2026-10-26 18:44:31 +00:00
fixed shmup in euc_in_nil and euc_in_sl2
This commit is contained in:
1 parent
8e49baef0e
commit
4351f99432
2 files changed
+9
-4
No files matched your search
+7
-2
@@ -2043,6 +2043,11 @@ EX transmatrix default_spin() {
|
||||
return cspin90(0, 1) * cgi.intermediate_to_logical_scaled;
|
||||
}
|
||||
|
||||
EX bool shmup_inverted() {
|
||||
if(!embedded_plane) return false;
|
||||
return (vid.wall_height < 0) ^ (geom3::euc_in_nil() || geom3::euc_in_sl2());
|
||||
}
|
||||
|
||||
EX void centerpc(ld aspd) {
|
||||
|
||||
if(subscreens::split([=] () {centerpc(aspd);})) return;
|
||||
@@ -2073,11 +2078,11 @@ EX void centerpc(ld aspd) {
|
||||
else {
|
||||
adjust_eye(T, pc->base, +1);
|
||||
}
|
||||
|
||||
|
||||
View = iview_inverse(T);
|
||||
if(gproduct) NLP = ortho_inverse(pc->ori);
|
||||
if(WDIM == 2) {
|
||||
if(vid.wall_height < 0) rotate_view(cspin180(2, 1));
|
||||
if(shmup_inverted()) rotate_view(cspin180(2, 1));
|
||||
if(gproduct)
|
||||
rotate_view( cspin(2, 1, -90._deg - shmup::playerturny[id]) * cspin90(0, 1));
|
||||
else
|
||||
|
||||
Reference in new issue
Block a user