1
0
Fork 0

Setting offset or tilt always sets goal-offset or goal-tilt as well.

This commit is contained in:
david 2002-03-26 13:44:43 +00:00
parent bdca06f9ba
commit 4536c246da

View file

@ -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