mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2026-10-27 19:14:30 +00:00
fixed MAXMDIM guards
This commit is contained in:
1 parent
02bb9d5ea5
commit
43bf7c5cfe
7 files changed
+28
-17
No files matched your search
@@ -1193,5 +1193,12 @@ EX ld raddif(ld a, ld b) {
|
||||
return d;
|
||||
}
|
||||
|
||||
EX int bucketer(ld x) {
|
||||
return int(x * 10 + 100000.5) - 100000;
|
||||
}
|
||||
|
||||
EX int bucketer(hyperpoint h) {
|
||||
return bucketer(h[0]) + 1000 * bucketer(h[1]) + 1000000 * bucketer(h[2]);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user