1
0
Fork 0

src/Viewer/viewmgr.cxx: allow aircraft to set initial view number.

E.g. fgaddon/Aircraft/Icaro_MRX13/Icaro_Laminar_13_MRX-set.xml sets
/sim/current-view/view-number to 9.

It seems that recent View changes broke this, but this fix is in unchanged
code.
This commit is contained in:
Julian Smith 2019-08-14 00:25:16 +01:00
parent fa0fb9bc06
commit f71624e170

View file

@ -39,9 +39,9 @@
// Constructor // Constructor
FGViewMgr::FGViewMgr( void ) : FGViewMgr::FGViewMgr( void ) :
inited(false), inited(false),
config_list(fgGetNode("/sim", true)->getChildren("view")), config_list(fgGetNode("/sim", true)->getChildren("view"))
current(0)
{ {
current = fgGetNode("/sim/current-view/view-number")->getIntValue();
} }
// Destructor // Destructor