mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-27 14:37:16 +00:00
improved bucketer
This commit is contained in:
parent
1712914771
commit
86009d1e49
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user