From: ehofman Date: Mon, 31 Mar 2003 08:36:49 +0000 (+0000) Subject: Remove an unnecessary check. This is done in fgPanelVisible already X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=891e83809e94a36b557a6bf3d120006cb6aa73d4;p=flightgear.git Remove an unnecessary check. This is done in fgPanelVisible already --- diff --git a/src/Main/main.cxx b/src/Main/main.cxx index 86a030327..ab2ded38f 100644 --- a/src/Main/main.cxx +++ b/src/Main/main.cxx @@ -1399,7 +1399,6 @@ void fgReshape( int width, int height ) { int view_h; if ( (!fgGetBool("/sim/virtual-cockpit")) - && (globals->get_current_panel() != NULL) && fgPanelVisible() && idle_state == 1000 ) { view_h = (int)(height * (globals->get_current_panel()->getViewHeight() - globals->get_current_panel()->getYOffset()) / 768.0);