X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FMain%2Fviewmgr.cxx;h=eba47d0c974de2a7635e3cabaa1cd83deae449cd;hb=f6e80608797fa9ab9d44444eb7b031e412b83067;hp=56bd8ed5436f78ae0afeb711288a9e20ae8b15b6;hpb=71598c12f80b47ea02973d2deb0b48bbe5e85b3f;p=flightgear.git diff --git a/src/Main/viewmgr.cxx b/src/Main/viewmgr.cxx index 56bd8ed54..eba47d0c9 100644 --- a/src/Main/viewmgr.cxx +++ b/src/Main/viewmgr.cxx @@ -25,13 +25,9 @@ #include -#include // FIXME: this should NOT be needed - #include "viewmgr.hxx" #include "fg_props.hxx" -// strings -string viewpath, nodepath, strdata; // Constructor FGViewMgr::FGViewMgr( void ) : @@ -50,6 +46,7 @@ void FGViewMgr::init () { char stridx [ 20 ]; + string viewpath, nodepath, strdata; bool from_model = false; bool at_model = false; int from_model_index = 0; @@ -174,9 +171,10 @@ FGViewMgr::unbind () } void -FGViewMgr::update (int dt) +FGViewMgr::update (double dt) { char stridx [20]; + string viewpath, nodepath; double lon_deg, lat_deg, alt_ft, roll_deg, pitch_deg, heading_deg; FGViewer * view = get_current_view(); @@ -223,7 +221,7 @@ FGViewMgr::update (int dt) } // if lookat (type 1) then get target data... - if (loop_view->getType() == 1) { + if (loop_view->getType() == FG_LOOKAT) { nodepath = viewpath; nodepath += "/config/from-model"; if (!fgGetBool(nodepath.c_str())) { @@ -259,7 +257,6 @@ FGViewMgr::update (int dt) // Update the current view do_axes(); view->update(dt); - double tmp; } void