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

View file

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