diff options
author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2006-12-17 15:20:24 +0100 |
---|---|---|
committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2006-12-17 15:20:24 +0100 |
commit | 6ee81353d9dd4a9a97f8e91d6a619e59808f8106 (patch) | |
tree | c292ea284347d0bd14d168ba2904223e842a165c /src | |
parent | 528a1ebe1491d9f9d55e0d53d11a16729b2bd39b (diff) |
remove Hill.a_view
Diffstat (limited to 'src')
-rw-r--r-- | src/Hill.H | 1 | ||||
-rw-r--r-- | src/Hill.cxx | 2 | ||||
-rw-r--r-- | src/Panorama.cxx | 13 |
3 files changed, 7 insertions, 9 deletions
@@ -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 { |