Setting offset or tilt always sets goal-offset or goal-tilt as well.
This commit is contained in:
parent
bdca06f9ba
commit
4536c246da
1 changed files with 6 additions and 2 deletions
|
@ -177,8 +177,10 @@ void
|
|||
FGViewMgr::setViewOffset_deg (double offset)
|
||||
{
|
||||
FGViewer * view = get_current_view();
|
||||
if (view != 0)
|
||||
if (view != 0) {
|
||||
view->setGoalHeadingOffset_deg(offset);
|
||||
view->setHeadingOffset_deg(offset);
|
||||
}
|
||||
}
|
||||
|
||||
double
|
||||
|
@ -207,8 +209,10 @@ void
|
|||
FGViewMgr::setViewTilt_deg (double tilt)
|
||||
{
|
||||
FGViewer * view = get_current_view();
|
||||
if (view != 0)
|
||||
if (view != 0) {
|
||||
view->setGoalPitchOffset_deg(tilt);
|
||||
view->setPitchOffset_deg(tilt);
|
||||
}
|
||||
}
|
||||
|
||||
double
|
||||
|
|
Loading…
Reference in a new issue