From 9dc27696df2ad91c4df9f125f53f74bde4148946 Mon Sep 17 00:00:00 2001 From: Johannes Hofmann Date: Sat, 5 Jul 2008 23:05:07 +0200 Subject: whitespace --- src/Panorama.cxx | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) (limited to 'src/Panorama.cxx') diff --git a/src/Panorama.cxx b/src/Panorama.cxx index aba5fbf..b9c47de 100644 --- a/src/Panorama.cxx +++ b/src/Panorama.cxx @@ -82,7 +82,6 @@ Panorama::remove_hills(int flags) { mountains = h_new; } - int Panorama::set_viewpoint(const char *name) { Hill *m = get_pos(name); @@ -114,7 +113,6 @@ Panorama::set_viewpoint(const Hill *m) { update_angles(); } - Hills * Panorama::get_mountains() { return mountains; @@ -329,31 +327,27 @@ Panorama::mark_hidden(Hills *hills) { m->flags &= ~Hill::HIDDEN; - if (m->flags & Hill::DUPLICATE) { + if (m->flags & Hill::DUPLICATE) continue; - } for (j=0; jget_num(); j++) { n = hills->get(j); - if (n->flags & Hill::DUPLICATE || n->flags & Hill::TRACK_POINT) { + if (n->flags & Hill::DUPLICATE || n->flags & Hill::TRACK_POINT) continue; - } - if (m == n || fabs(m->alph - n->alph > pi_d / 2.0)) { + + if (m == n || fabs(m->alph - n->alph > pi_d / 2.0)) continue; - } - if (m->dist < n->dist || m->a_nick > n->a_nick) { + + if (m->dist < n->dist || m->a_nick > n->a_nick) continue; - } h = (n->a_nick - m->a_nick) / fabs(m->alph - n->alph); if (isinf(h) || h > hide_value) { m->flags |= Hill::HIDDEN; } } - } - } void -- cgit v1.2.3