1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-04-11 21:33:16 +00:00

fixed bugs with ggmatrix and virtualRebase

This commit is contained in:
Zeno Rogue 2018-04-21 19:13:53 +02:00
parent 71288613f4
commit 616a4fddc7

View File

@ -3400,7 +3400,7 @@ transmatrix &ggmatrix(cell *c) {
t = gmatrix[centerover.c] * eumove(cell_to_vec(c) - cellwalker_to_vec(centerover));
}
else
t = applyspin(viewctr, cview()) * calc_relative_matrix(c, viewctr.h->c7);
t = actualV(viewctr, cview()) * calc_relative_matrix(c, viewctr.h->c7);
}
return t;
}
@ -3478,7 +3478,7 @@ void virtualRebase(cell*& base, transmatrix& at, bool tohex) {
hs.h = h;
hs.spin = d;
heptspin hs2 = hs + wstep;
transmatrix& V2 = invheptmove[d];
transmatrix V2 = spin(-hs2.spin*2*M_PI/S7) * invheptmove[d];
double newz = (V2 * at * C0) [2];
if(newz < currz) {
currz = newz;