1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-06-18 11:19:59 +00:00

fix elliptic S3

This commit is contained in:
Zeno Rogue 2021-08-04 15:18:22 +02:00
parent b67b946126
commit 8c2dfad20f

View File

@ -1535,6 +1535,7 @@ EX unsigned bucketer(hyperpoint h) {
}
dx += bucketer(h[0]) + 1000 * bucketer(h[1]) + 1000000 * bucketer(h[2]);
if(MDIM == 4) dx += bucketer(h[3]) * 1000000001;
if(elliptic) dx = min(dx, -dx);
return dx;
}