John Denker: Simplify redundant code and superfluous variable
This commit is contained in:
parent
6e5673de21
commit
0be434936e
1 changed files with 3 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue