From 4536c246da030fc8083e91c8a0fd6d91d8521119 Mon Sep 17 00:00:00 2001 From: david Date: Tue, 26 Mar 2002 13:44:43 +0000 Subject: [PATCH] Setting offset or tilt always sets goal-offset or goal-tilt as well. --- src/Main/viewmgr.cxx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/Main/viewmgr.cxx b/src/Main/viewmgr.cxx index bcbbb4f8a..8ca1f584e 100644 --- a/src/Main/viewmgr.cxx +++ b/src/Main/viewmgr.cxx @@ -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