From 767ef733aa52ca53e2ee1bb1a37107c5fdf11e3b Mon Sep 17 00:00:00 2001 From: Johannes Hofmann Date: Thu, 5 May 2005 14:53:02 +0000 Subject: fix fix --- src/Panorama.cxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Panorama.cxx b/src/Panorama.cxx index e335153..a24b625 100644 --- a/src/Panorama.cxx +++ b/src/Panorama.cxx @@ -1,5 +1,5 @@ // -// "$Id: Panorama.cxx,v 1.28 2005/05/05 15:24:43 hofmann Exp $" +// "$Id: Panorama.cxx,v 1.29 2005/05/05 16:53:02 hofmann Exp $" // // Panorama routines. // @@ -288,15 +288,15 @@ Panorama::optimize(Mountain *m1, Mountain *m2) { a_nick = atan(tan_nick_view); a_center = atan(tan_dir_view); - if (fabs(a_center - m1->alph) > pi_d/2.0) { - a_center = a_center + pi_d; - } - if (a_center > 2.0 * pi_d) { a_center = a_center - 2.0 * pi_d; } else if (a_center < 0.0) { a_center = a_center + 2.0 * pi_d; } + + if (fabs(a_center - m1->alph) > pi_d/2.0) { + a_center = a_center + pi_d; + } scale = n_scale; -- cgit v1.2.3