1
0
Fork 0

Reset: use a smart point for model-placement.

This commit is contained in:
James Turner 2013-10-06 17:32:33 +01:00
parent 75a01aa588
commit a488086d30
2 changed files with 4 additions and 3 deletions

View file

@ -58,7 +58,7 @@ FGAircraftModel::~FGAircraftModel ()
{ {
// drop reference // drop reference
_fx = 0; _fx = 0;
deinit(); shutdown();
} }
void void
@ -129,7 +129,7 @@ FGAircraftModel::init ()
void void
FGAircraftModel::reinit() FGAircraftModel::reinit()
{ {
deinit(); shutdown();
_fx->reinit(); _fx->reinit();
init(); init();
// TODO globally create signals for all subsystems (re)initialized // TODO globally create signals for all subsystems (re)initialized
@ -137,7 +137,7 @@ FGAircraftModel::reinit()
} }
void void
FGAircraftModel::deinit() FGAircraftModel::shutdown()
{ {
if (!_aircraft.get()) { if (!_aircraft.get()) {
return; return;

View file

@ -26,6 +26,7 @@ public:
virtual ~FGAircraftModel (); virtual ~FGAircraftModel ();
virtual void init (); virtual void init ();
virtual void shutdown ();
virtual void reinit (); virtual void reinit ();
virtual void bind (); virtual void bind ();
virtual void unbind (); virtual void unbind ();