更新 'src/Network/fgcom.cxx'

This commit is contained in:
zhongjin 2022-12-06 16:18:07 +08:00
parent ad9ee2b842
commit 5da3ef8159

View File

@ -645,7 +645,8 @@ void FGCom::valueChanged(SGPropertyNode *prop)
_mpTransmitFrequencyNode->setValue(_currentCallFrequency * 1000000);
_mpTransmitPowerNode->setValue(1.0);
SGPath soundpath( globals->get_fg_root() + "/Sounds/click.wav" );
SGPath soundpath( globals->get_fg_root() );
soundpath.append("/Sounds/click.wav");
SG_LOG(SG_SOUND, SG_ALERT, "FGCom: PTT active: " << soundpath);
@ -654,8 +655,6 @@ void FGCom::valueChanged(SGPropertyNode *prop)
//SG_LOG(SG_SOUND, SG_INFO, "CMD :" << urlcmd );
//system(urlcmd.c_str());
// SGPath dbpath( globals->get_fg_root() );
//dbpath.append( "/AI/Aircraft/" );