Reset: do general init on reset path
This commit is contained in:
parent
0fbc448af0
commit
af6095c5d1
2 changed files with 4 additions and 3 deletions
src/Main
|
@ -984,6 +984,9 @@ void fgStartNewReset()
|
|||
globals->resetPropertyRoot();
|
||||
globals->restoreInitialState();
|
||||
|
||||
fgInitConfig(0, NULL, true);
|
||||
fgInitGeneral(); // all of this?
|
||||
|
||||
render = new FGRenderer;
|
||||
render->setEventHandler(eventHandler);
|
||||
globals->set_renderer(render);
|
||||
|
@ -995,7 +998,6 @@ void fgStartNewReset()
|
|||
flightgear::CameraGroup::buildDefaultGroup(viewer.get());
|
||||
|
||||
fgOSResetProperties();
|
||||
fgInitConfig(0, NULL, true);
|
||||
|
||||
// init some things manually
|
||||
// which do not follow the regular init pattern
|
||||
|
|
|
@ -520,10 +520,9 @@ FGGlobals::resetPropertyRoot()
|
|||
{
|
||||
delete locale;
|
||||
|
||||
#if DEBUG_RESET
|
||||
SG_LOG(SG_GENERAL, SG_INFO, "root props refcount:" << props.getNumRefs());
|
||||
treeDumpRefCounts(0, props);
|
||||
#endif
|
||||
|
||||
props = new SGPropertyNode;
|
||||
initProperties();
|
||||
locale = new FGLocale(props);
|
||||
|
|
Loading…
Add table
Reference in a new issue