mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-02-22 22:10:20 +00:00
arb:: fixed virtualRebase in hyperbolic arb
This commit is contained in:
parent
9da8708835
commit
d35221e849
@ -231,6 +231,16 @@ void virtualRebase_cell(cell*& base, T& at, const U& check) {
|
|||||||
best_at = cand_at;
|
best_at = cand_at;
|
||||||
newbase = c2;
|
newbase = c2;
|
||||||
}
|
}
|
||||||
|
if(arb::in()) forCellIdCM(c3, j, c2) {
|
||||||
|
transmatrix V3 = currentmap->iadj(c2, j);
|
||||||
|
T cand_at3 = V3 * cand_at;
|
||||||
|
horo_distance newz3(check(cand_at3));
|
||||||
|
if(newz3 < currz) {
|
||||||
|
currz = newz3;
|
||||||
|
best_at = cand_at3;
|
||||||
|
newbase = c3;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if(!newbase) break;
|
if(!newbase) break;
|
||||||
base = newbase;
|
base = newbase;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user