Avoid nuisance sound effects after sim-reset.
This commit is contained in:
parent
badec14d27
commit
4b74636d04
3 changed files with 6 additions and 2 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -109,6 +109,9 @@ FGFX::init()
|
|||
void
|
||||
FGFX::reinit()
|
||||
{
|
||||
for ( unsigned int i = 0; i < _sound.size(); i++ ) {
|
||||
delete _sound[i];
|
||||
}
|
||||
_sound.clear();
|
||||
init();
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue