diff options
Diffstat (limited to 'crates/gipfel-core')
| -rw-r--r-- | crates/gipfel-core/src/panorama.rs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/crates/gipfel-core/src/panorama.rs b/crates/gipfel-core/src/panorama.rs index 9e27251..3737606 100644 --- a/crates/gipfel-core/src/panorama.rs +++ b/crates/gipfel-core/src/panorama.rs @@ -448,8 +448,13 @@ impl Panorama { let mut rows = Vec::new(); for &i in &self.visible { let m = &self.hills[i]; + // restricted mode (-e, a curated list such as the photo + // index): export every listed entry inside the field of + // view. The prominence/occlusion heuristics are meant to + // thin out the full 21k peak database, not to second-guess + // an explicit list. if m.flags & crate::hill::FLAG_DUPLIC != 0 - || m.flags & crate::hill::FLAG_HIDDEN != 0 + || (!require_export && m.flags & crate::hill::FLAG_HIDDEN != 0) || (require_export && m.flags & crate::hill::FLAG_EXPORT == 0) { continue; |
