mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-06-05 16:04:07 +00:00
fix 2 to DIM in virtualRebaseSimple just in case
This commit is contained in:
parent
52ce5ac9aa
commit
e99e05944a
@ -380,7 +380,7 @@ void virtualRebaseSimple(heptagon*& base, transmatrix& at) {
|
|||||||
|
|
||||||
while(true) {
|
while(true) {
|
||||||
|
|
||||||
double currz = at[2][2];
|
double currz = at[DIM][DIM];
|
||||||
|
|
||||||
heptagon *h = base;
|
heptagon *h = base;
|
||||||
|
|
||||||
@ -392,7 +392,7 @@ void virtualRebaseSimple(heptagon*& base, transmatrix& at) {
|
|||||||
heptspin hs(h, d, false);
|
heptspin hs(h, d, false);
|
||||||
heptspin hs2 = hs + wstep;
|
heptspin hs2 = hs + wstep;
|
||||||
transmatrix V2 = spin(-hs2.spin*2*M_PI/S7) * invheptmove[d] * at;
|
transmatrix V2 = spin(-hs2.spin*2*M_PI/S7) * invheptmove[d] * at;
|
||||||
double newz = V2[2][2];
|
double newz = V2[DIM][DIM];
|
||||||
if(newz < currz) {
|
if(newz < currz) {
|
||||||
currz = newz;
|
currz = newz;
|
||||||
bestV = V2;
|
bestV = V2;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user