1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2026-03-09 14:49:43 +00:00

2D3D: switch without changing the display

This commit is contained in:
Zeno Rogue
2019-05-09 01:39:32 +02:00
parent f675c08e7e
commit 450739b133
4 changed files with 17 additions and 6 deletions

View File

@@ -3723,7 +3723,7 @@ void pushdown(cell *c, int& q, const transmatrix &V, double down, bool rezoom, b
auto pp = dynamic_cast<dqi_poly*> (&*ptds[q++]);
if(!pp) continue;
auto& ptd = *pp;
ptd.V = ptd.V * zpush(-down);
ptd.V = ptd.V * zpush(+down);
}
return;
}
@@ -6100,6 +6100,7 @@ void make_actual_view() {
if(WDIM == 3) { actual_view_transform = Id; return; }
if(sphereflipped()) sphereflip[DIM][DIM] = -1;
actual_view_transform = ypush(vid.yshift) * sphereflip;
if(geom3::always3) actual_view_transform = zpush(+geom3::camera) * actual_view_transform;
}
transmatrix cview() {