mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-23 21:07:17 +00:00
fixed optimizeview in Euclidean syntetic
This commit is contained in:
parent
5202511c57
commit
d5175882f6
@ -810,7 +810,8 @@ void optimizeview() {
|
|||||||
heptagon *h2 = createStep(viewctr.at, i);
|
heptagon *h2 = createStep(viewctr.at, i);
|
||||||
transmatrix T = (binarytiling) ? binary::relative_matrix(h2, viewctr.at) : synt::relative_matrix(h2, viewctr.at);
|
transmatrix T = (binarytiling) ? binary::relative_matrix(h2, viewctr.at) : synt::relative_matrix(h2, viewctr.at);
|
||||||
hyperpoint H = View * tC0(T);
|
hyperpoint H = View * tC0(T);
|
||||||
if(H[2] < best) best = H[2], turn = i, TB = T;
|
ld quality = euclid ? hdist0(H) : H[2];
|
||||||
|
if(quality < best) best = quality, turn = i, TB = T;
|
||||||
}
|
}
|
||||||
if(turn >= 0) {
|
if(turn >= 0) {
|
||||||
View = View * TB;
|
View = View * TB;
|
||||||
|
Loading…
Reference in New Issue
Block a user