1
0
Fork 0

Avoid nuisance sound effects after sim-reset.

This commit is contained in:
ThorstenB 2011-03-19 14:51:39 +01:00
parent badec14d27
commit 4b74636d04
3 changed files with 6 additions and 2 deletions

View file

@ -1,4 +1,4 @@
// model.cxx - manage a 3D aircraft model.
// acmodel.cxx - manage a 3D aircraft model.
// Written by David Megginson, started 2002.
//
// This file is in the Public Domain, and comes with no warranty.
@ -84,6 +84,7 @@ void
FGAircraftModel::reinit()
{
deinit();
_fx->reinit();
init();
}

View file

@ -1,4 +1,4 @@
// model.hxx - manage a 3D aircraft model.
// acmodel.hxx - manage a 3D aircraft model.
// Written by David Megginson, started 2002.
//
// This file is in the Public Domain, and comes with no warranty.

View file

@ -109,6 +109,9 @@ FGFX::init()
void
FGFX::reinit()
{
for ( unsigned int i = 0; i < _sound.size(); i++ ) {
delete _sound[i];
}
_sound.clear();
init();
};