summaryrefslogtreecommitdiff
path: root/src/Hill.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/Hill.cxx')
-rw-r--r--src/Hill.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Hill.cxx b/src/Hill.cxx
index 4057524..d189bd7 100644
--- a/src/Hill.cxx
+++ b/src/Hill.cxx
@@ -129,7 +129,8 @@ void Hills::mark_duplicates(double dist) {
j = i + 1;
n = get(j);
while (n && fabs(n->phi - m->phi) <= dist) {
- if (fabs(n->lam - m->lam) <= dist) {
+ if (fabs(n->lam - m->lam) <= dist &&
+ fabs(n->height - m->height) <= 50.0 ) {
n->duplicate = 1;
}
j = j + 1;