Candidate fix for bug 146, view_direction computed incorrectly.
This commit is contained in:
parent
dae7e961c9
commit
6266491aea
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue