summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2006-12-17 15:20:24 +0100
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2006-12-17 15:20:24 +0100
commit6ee81353d9dd4a9a97f8e91d6a619e59808f8106 (patch)
treec292ea284347d0bd14d168ba2904223e842a165c /src
parent528a1ebe1491d9f9d55e0d53d11a16729b2bd39b (diff)
remove Hill.a_view
Diffstat (limited to 'src')
-rw-r--r--src/Hill.H1
-rw-r--r--src/Hill.cxx2
-rw-r--r--src/Panorama.cxx13
3 files changed, 7 insertions, 9 deletions
diff --git a/src/Hill.H b/src/Hill.H
index b181622..16d6eff 100644
--- a/src/Hill.H
+++ b/src/Hill.H
@@ -24,7 +24,6 @@ class Hill {
double phi, lam;
double height;
double alph;
- double a_view;
double a_nick;
double dist;
double x, y;
diff --git a/src/Hill.cxx b/src/Hill.cxx
index 0504eeb..9b68c92 100644
--- a/src/Hill.cxx
+++ b/src/Hill.cxx
@@ -30,8 +30,6 @@ Hill::Hill(const Hill& h) {
lam = h.lam;
height = h.height;
alph = h.alph;
- a_view = h.a_view;
- a_view = h.a_view;
dist = h.dist;
x = h.x;
y = h.y;
diff --git a/src/Panorama.cxx b/src/Panorama.cxx
index 52846de..7ec3ccd 100644
--- a/src/Panorama.cxx
+++ b/src/Panorama.cxx
@@ -400,6 +400,7 @@ Panorama::update_close_mountains() {
void
Panorama::update_visible_mountains() {
int i;
+ double a_view;
Hill *m;
visible_mountains->clear();
@@ -407,14 +408,14 @@ Panorama::update_visible_mountains() {
for (i=0; i<close_mountains->get_num(); i++) {
m = close_mountains->get(i);
- m->a_view = m->alph - parms.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;
+ a_view = m->alph - parms.a_center;
+ if (a_view > pi_d) {
+ a_view -= 2.0*pi_d;
+ } else if (a_view < -pi_d) {
+ a_view += 2.0*pi_d;
}
- if (m->a_view < view_angle && m->a_view > - view_angle) {
+ if (a_view < view_angle && a_view > - view_angle) {
visible_mountains->add(m);
m->flags |= Hill::VISIBLE;
} else {