1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-11-07 09:13:02 +00:00

asonov:: works even with small periods

This commit is contained in:
Zeno Rogue
2019-11-08 15:35:23 +01:00
parent add037d4e8
commit f7fc9d7d5d
4 changed files with 31 additions and 16 deletions

View File

@@ -218,6 +218,7 @@ struct horo_distance {
void horo_distance::become(hyperpoint h1) {
if(solnih) {
a = abs(h1[2]);
if(asonov::in()) h1 = asonov::straighten * h1;
b = hypot_d(2, h1);
}
#if CAP_BT