1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2026-07-03 17:02:42 +00:00

fixed hdist computation in SL, also fixed hpxy and hpxy

This commit is contained in:
Zeno Rogue
2019-08-24 20:29:10 +02:00
parent 50052f27f5
commit 47d309e408
3 changed files with 10 additions and 3 deletions
+5 -1
View File
@@ -215,8 +215,10 @@ struct horo_distance {
b = intval(h1, C0);
a = abs(binary::horo_level(h1));
}
else
#endif
else if(hybri)
a = 0, b = hdist(h1, C0);
else
a = 0, b = intval(h1, C0);
}
@@ -227,6 +229,8 @@ struct horo_distance {
if(binarytiling) become(inverse(T) * h1);
else
#endif
if(sol || hybri) become(inverse(T) * h1);
else
a = 0, b = intval(h1, tC0(T));
}
bool operator < (const horo_distance z) {