mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-01-11 18:00:34 +00:00
arb:: a bit nicer
This commit is contained in:
parent
0153cb905a
commit
3b5e31156d
@ -404,9 +404,9 @@ struct hrmap_arbi : hrmap {
|
||||
}
|
||||
|
||||
for(auto& p2: altmap[alt]) if(id_of(p2.first) == xt && hdist(tC0(p2.second), tC0(T)) < 1e-2) {
|
||||
for(int oth=0; oth < p2.first->type; oth++)
|
||||
if(hdist(p2.second * xsh.vertices[oth], T * xsh.vertices[e]) < 1e-2) {
|
||||
for(int oth=0; oth < p2.first->type; oth++) {
|
||||
ld err = hdist(p2.second * xsh.vertices[oth], T * xsh.vertices[e]);
|
||||
if(err < 1e-2) {
|
||||
static ld max_err = 0;
|
||||
if(err > max_err) {
|
||||
println(hlog, "err = ", err);
|
||||
@ -416,6 +416,7 @@ struct hrmap_arbi : hrmap {
|
||||
return p2.first;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
auto h1 = tailored_alloc<heptagon> (current.shapes[xt].size());
|
||||
h1->distance = h->distance + 1;
|
||||
|
Loading…
Reference in New Issue
Block a user