summaryrefslogtreecommitdiff
path: root/crates/wipfel/src/markers.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/wipfel/src/markers.rs')
-rw-r--r--crates/wipfel/src/markers.rs8
1 files changed, 7 insertions, 1 deletions
diff --git a/crates/wipfel/src/markers.rs b/crates/wipfel/src/markers.rs
index d024f2e..b8c00aa 100644
--- a/crates/wipfel/src/markers.rs
+++ b/crates/wipfel/src/markers.rs
@@ -46,7 +46,13 @@ pub fn nearest_hill(
let mut best = None;
let mut best_d = max_dist;
for &i in &pan.visible {
- if !show_hidden && pan.hills[i].flags & gipfel_core::hill::FLAG_HIDDEN != 0 {
+ let flags = pan.hills[i].flags;
+ if flags & gipfel_core::hill::FLAG_DUPLIC != 0
+ || flags & gipfel_core::hill::FLAG_TRACK_POINT != 0
+ {
+ continue;
+ }
+ if !show_hidden && flags & gipfel_core::hill::FLAG_HIDDEN != 0 {
continue;
}
let h = &pan.hills[i];