summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohannes Hofmann <johannes.hofmann@gmx.de>2005-05-05 11:00:59 +0000
committerJohannes Hofmann <johannes.hofmann@gmx.de>2005-05-05 11:00:59 +0000
commit7da9aa2e9bc0dc209d1a6daefd75f9bd556c3b45 (patch)
tree1004a773a53139a919980eb9cfefe68c979669c5 /src
parent44cc474d39e0cb385fb105f99117f8b9776aa9f0 (diff)
limit visible angle to -pi/3 to +pi/3
limit visible angle to -pi/3 to +pi/3
Diffstat (limited to 'src')
-rw-r--r--src/GipfelWidget.cxx2
-rw-r--r--src/Panorama.cxx5
2 files changed, 4 insertions, 3 deletions
diff --git a/src/GipfelWidget.cxx b/src/GipfelWidget.cxx
index 5710ad0..7e8c258 100644
--- a/src/GipfelWidget.cxx
+++ b/src/GipfelWidget.cxx
@@ -1,5 +1,5 @@
//
-// "$Id: GipfelWidget.cxx,v 1.19 2005/05/05 11:02:07 hofmann Exp $"
+// "$Id: GipfelWidget.cxx,v 1.20 2005/05/05 13:00:59 hofmann Exp $"
//
// PSEditWidget routines.
//
diff --git a/src/Panorama.cxx b/src/Panorama.cxx
index 04b63fe..484c36e 100644
--- a/src/Panorama.cxx
+++ b/src/Panorama.cxx
@@ -1,5 +1,5 @@
//
-// "$Id: Panorama.cxx,v 1.26 2005/05/05 11:02:07 hofmann Exp $"
+// "$Id: Panorama.cxx,v 1.27 2005/05/05 13:00:59 hofmann Exp $"
//
// Panorama routines.
//
@@ -436,13 +436,14 @@ Panorama::update_visible_mountains() {
> height_dist_ratio)) {
m->a_view = m->alph - a_center;
+
if (m->a_view > pi_d) {
m->a_view -= 2.0*pi_d;
} else if (m->a_view < -pi_d) {
m->a_view += 2.0*pi_d;
}
- if (m->a_view < pi_d / 2.0 && m->a_view > - pi_d / 2.0) {
+ if (m->a_view < pi_d / 3.0 && m->a_view > - pi_d / 3.0) {
visible_mountains->add(m);
}
}