From 6266491aea5cbdb8f504b46be01858c08f385f2c Mon Sep 17 00:00:00 2001 From: James Turner Date: Sat, 14 Aug 2010 19:24:48 +0100 Subject: [PATCH] Candidate fix for bug 146, view_direction computed incorrectly. --- src/Cockpit/cockpit.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Cockpit/cockpit.cxx b/src/Cockpit/cockpit.cxx index 54ccd2a23..2669ca1f8 100644 --- a/src/Cockpit/cockpit.cxx +++ b/src/Cockpit/cockpit.cxx @@ -245,7 +245,7 @@ float get_climb_rate( void ) float get_view_direction( void ) { double view_off = 360.0 - globals->get_current_view()->getHeadingOffset_deg(); - double view = SGMiscd::normalizeAngle(fgGetDouble("/orientation/heading-deg") + view_off); + double view = SGMiscd::normalizeAngle2(fgGetDouble("/orientation/heading-deg") + view_off); return view; }