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:
parent
fa0fb9bc06
commit
f71624e170
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue