From 6ee81353d9dd4a9a97f8e91d6a619e59808f8106 Mon Sep 17 00:00:00 2001 From: Johannes Hofmann Date: Sun, 17 Dec 2006 15:20:24 +0100 Subject: remove Hill.a_view --- src/Hill.H | 1 - src/Hill.cxx | 2 -- src/Panorama.cxx | 13 +++++++------ 3 files changed, 7 insertions(+), 9 deletions(-) (limited to 'src') 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; iget_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 { -- cgit v1.2.3