From: James Turner Date: Sun, 24 Jan 2016 19:02:31 +0000 (-0600) Subject: View::updateData becomes a private helper. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=1515154e128a2d195a0e25150935d9afbb56e925;p=flightgear.git View::updateData becomes a private helper. --- diff --git a/src/Viewer/viewer.cxx b/src/Viewer/viewer.cxx index a2d555a9e..3679a2636 100644 --- a/src/Viewer/viewer.cxx +++ b/src/Viewer/viewer.cxx @@ -849,6 +849,7 @@ View::updateData() void View::update (double dt) { + updateData(); updateDampOutput(dt); int i; diff --git a/src/Viewer/viewer.hxx b/src/Viewer/viewer.hxx index f1f1f4726..a215ac87e 100644 --- a/src/Viewer/viewer.hxx +++ b/src/Viewer/viewer.hxx @@ -79,8 +79,7 @@ public: ////////////////////////////////////////////////////////////////////// void resetOffsetsAndFOV(); - void updateData(); - + ViewType getType() const { return _type; } void setType( int type ); @@ -200,6 +199,7 @@ private: double target_z_offset_m, double near_m, bool internal ); void set_clean() { _dirty = false; } + void updateData(); void setHeadingOffset_deg_property (double heading_offset_deg); void setPitchOffset_deg_property(double pitch_offset_deg); diff --git a/src/Viewer/viewmgr.cxx b/src/Viewer/viewmgr.cxx index 27226252e..1bc091c8c 100644 --- a/src/Viewer/viewmgr.cxx +++ b/src/Viewer/viewmgr.cxx @@ -134,9 +134,6 @@ FGViewMgr::update (double dt) return; } - // Set up view location and orientation - currentView->updateData(); - // Update the current view currentView->update(dt);