Revert a part of the past patch. It still does not crash
but you can hear again the 737 ...
This commit is contained in:
parent
aecfc1a229
commit
1aa1288620
1 changed files with 0 additions and 7 deletions
|
@ -129,10 +129,6 @@ FGFX::update (double dt)
|
||||||
{
|
{
|
||||||
SGSoundMgr *smgr = globals->get_soundmgr();
|
SGSoundMgr *smgr = globals->get_soundmgr();
|
||||||
|
|
||||||
if (smgr->is_working() == false) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
// command sound manger
|
// command sound manger
|
||||||
bool pause = _pause->getBoolValue();
|
bool pause = _pause->getBoolValue();
|
||||||
if ( pause != last_pause ) {
|
if ( pause != last_pause ) {
|
||||||
|
@ -193,9 +189,6 @@ FGFX::play_message( SGSoundSample *_sample )
|
||||||
void
|
void
|
||||||
FGFX::play_message( const string path, const string fname )
|
FGFX::play_message( const string path, const string fname )
|
||||||
{
|
{
|
||||||
if (globals->get_soundmgr()->is_working() == false) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
SGSoundSample *sample;
|
SGSoundSample *sample;
|
||||||
sample = new SGSoundSample( path.c_str(), fname.c_str() );
|
sample = new SGSoundSample( path.c_str(), fname.c_str() );
|
||||||
play_message( sample );
|
play_message( sample );
|
||||||
|
|
Loading…
Reference in a new issue