mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-02-17 11:30:09 +00:00
make detect_cusp acknowledge err_zero_current
This commit is contained in:
parent
c0c34cacac
commit
0ee99c4c73
2
rug.cpp
2
rug.cpp
@ -921,7 +921,7 @@ void generate_deltas(vector<bincode>& target, int dim, bincode offset) {
|
||||
int detect_cusp_at(rugpoint *p, rugpoint *q) {
|
||||
if(hdist(p->h, q->h) * modelscale <= anticusp_dist)
|
||||
return 0;
|
||||
else if(modeldist(p->flat, q->flat) > anticusp_dist)
|
||||
else if(modeldist(p->flat, q->flat) > anticusp_dist - err_zero_current)
|
||||
return 1;
|
||||
else {
|
||||
add_anticusp_edge(p, q);
|
||||
|
Loading…
x
Reference in New Issue
Block a user