From 29354a1586013d5be341aaf4d89635b87298c853 Mon Sep 17 00:00:00 2001 From: Dennis Luxen Date: Thu, 22 Jan 2015 17:07:04 +0100 Subject: [PATCH] fix bearing computation --- data_structures/coordinate.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/data_structures/coordinate.cpp b/data_structures/coordinate.cpp index b7057d674..7bed19751 100644 --- a/data_structures/coordinate.cpp +++ b/data_structures/coordinate.cpp @@ -28,8 +28,9 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #include "coordinate_calculation.hpp" #include "../Util/mercator.hpp" +#ifndef NDEBUG #include "../Util/simple_logger.hpp" - +#endif #include #include @@ -84,5 +85,5 @@ void FixedPointCoordinate::output(std::ostream &out) const float FixedPointCoordinate::bearing(const FixedPointCoordinate &other) const { - return coordinate_calculation::bearing(*this, other); + return coordinate_calculation::bearing(other, *this); }