mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-11-01 14:32:59 +00:00
improved bucketer
This commit is contained in:
@@ -1201,7 +1201,7 @@ EX ld raddif(ld a, ld b) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
EX int bucketer(ld x) {
|
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) {
|
EX int bucketer(hyperpoint h) {
|
||||||
|
|||||||
Reference in New Issue
Block a user