summaryrefslogtreecommitdiff
path: root/src/Panorama.cxx
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/Panorama.cxx
parent528a1ebe1491d9f9d55e0d53d11a16729b2bd39b (diff)
remove Hill.a_view
Diffstat (limited to 'src/Panorama.cxx')
-rw-r--r--src/Panorama.cxx13
1 files changed, 7 insertions, 6 deletions
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 {