1
0
Fork 0

John Denker: Simplify redundant code and superfluous variable

This commit is contained in:
ehofman 2009-11-02 13:26:45 +00:00 committed by Tim Moore
parent 6e5673de21
commit 0be434936e

View file

@ -241,11 +241,10 @@ FGViewMgr::unbind ()
void
FGViewMgr::update (double dt)
{
FGViewer * view = get_current_view();
if (view == 0)
return;
FGViewer *loop_view = (FGViewer *)get_view(current);
if (loop_view == 0) return;
SGPropertyNode *n = config_list[current];
double lon_deg, lat_deg, alt_ft, roll_deg, pitch_deg, heading_deg;
@ -293,7 +292,7 @@ FGViewMgr::update (double dt)
// Update the current view
do_axes();
view->update(dt);
loop_view->update(dt);
abs_viewer_position = loop_view->getViewPosition();
// update audio listener values