mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-07-01 17:32:51 +00:00
fixed bugs with ggmatrix and virtualRebase
This commit is contained in:
parent
71288613f4
commit
616a4fddc7
@ -3400,7 +3400,7 @@ transmatrix &ggmatrix(cell *c) {
|
|||||||
t = gmatrix[centerover.c] * eumove(cell_to_vec(c) - cellwalker_to_vec(centerover));
|
t = gmatrix[centerover.c] * eumove(cell_to_vec(c) - cellwalker_to_vec(centerover));
|
||||||
}
|
}
|
||||||
else
|
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;
|
return t;
|
||||||
}
|
}
|
||||||
@ -3478,7 +3478,7 @@ void virtualRebase(cell*& base, transmatrix& at, bool tohex) {
|
|||||||
hs.h = h;
|
hs.h = h;
|
||||||
hs.spin = d;
|
hs.spin = d;
|
||||||
heptspin hs2 = hs + wstep;
|
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];
|
double newz = (V2 * at * C0) [2];
|
||||||
if(newz < currz) {
|
if(newz < currz) {
|
||||||
currz = newz;
|
currz = newz;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user