1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-08-30 17:27:57 +00:00

adjusted RogueViz

This commit is contained in:
Zeno Rogue
2019-11-14 20:26:07 +01:00
parent 45ba2f0229
commit 9168abd1a7
5 changed files with 24 additions and 25 deletions

View File

@@ -237,7 +237,7 @@ namespace flocking {
auto m = vd.m;
// these two functions compute new base and at, based on pats[i]
m->at = pats[i];
virtualRebase(m, true);
virtualRebase(m);
m->vel = vels[i];
}
shmup::fixStorage();
@@ -252,7 +252,7 @@ namespace flocking {
if(follow == 1) {
gmatrix.clear();
vdata[0].m->pat = View * calc_relative_matrix(vdata[0].m->base, viewctr.at->c7, C0) * vdata[0].m->at;
vdata[0].m->pat = View * calc_relative_matrix(vdata[0].m->base, centerover, C0) * vdata[0].m->at;
View = spin(90 * degree) * inverse(vdata[0].m->pat) * View;
if(GDIM == 3) {
View = hr::cspin(1, 2, 90 * degree) * View;
@@ -274,7 +274,6 @@ namespace flocking {
}
optimizeview();
centerover.at = viewctr.at->c7;
compute_graphical_distance();
gmatrix.clear();
playermoved = false;