mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-19 19:54:47 +00:00
fixed bucketing for euc_in_sl2
This commit is contained in:
parent
0e2b9d07ee
commit
8dede9f8a0
@ -2905,6 +2905,10 @@ EX namespace dq {
|
||||
EX queue<pair<heptagon*, shiftmatrix>> drawqueue;
|
||||
|
||||
EX unsigned bucketer(const shiftpoint& T) {
|
||||
if(geom3::euc_in_sl2()) {
|
||||
auto T1 = T; optimize_shift(T1);
|
||||
return bucketer(T1.h) + unsigned(floor(T1.shift*81527+.5));
|
||||
}
|
||||
return bucketer(T.h) + unsigned(floor(T.shift*81527+.5));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user