]> git.mxchange.org Git - flightgear.git/commitdiff
Candidate fix for bug 146, view_direction computed incorrectly.
authorJames Turner <zakalawe@mac.com>
Sat, 14 Aug 2010 18:24:48 +0000 (19:24 +0100)
committerJames Turner <zakalawe@mac.com>
Sat, 14 Aug 2010 18:24:48 +0000 (19:24 +0100)
src/Cockpit/cockpit.cxx

index 54ccd2a232706f45fe8f8fa8d7a25a1e86f718f2..2669ca1f8ca9ae1fd8d66a7167cf63b210937bde 100644 (file)
@@ -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;
 }