From: James Turner Date: Sat, 14 Aug 2010 18:24:48 +0000 (+0100) Subject: Candidate fix for bug 146, view_direction computed incorrectly. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=6266491aea5cbdb8f504b46be01858c08f385f2c;p=flightgear.git Candidate fix for bug 146, view_direction computed incorrectly. --- 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; }