1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-27 14:37:16 +00:00

improved bucketer

This commit is contained in:
Zeno Rogue 2020-02-13 11:06:54 +01:00
parent 1712914771
commit 86009d1e49

View File

@ -1201,7 +1201,7 @@ EX ld raddif(ld a, ld b) {
}
EX int bucketer(ld x) {
return int(x * 10 + 100000.5) - 100000;
return (long long)(x * 10000 + 100000.5) - 100000;
}
EX int bucketer(hyperpoint h) {