1
0
Fork 0

Candidate fix for bug 146, view_direction computed incorrectly.

This commit is contained in:
James Turner 2010-08-14 19:24:48 +01:00
parent dae7e961c9
commit 6266491aea

View file

@ -245,7 +245,7 @@ float get_climb_rate( void )
float get_view_direction( void ) float get_view_direction( void )
{ {
double view_off = 360.0 - globals->get_current_view()->getHeadingOffset_deg(); 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; return view;
} }