更新 'src/Environment/environment_mgr.cxx'
This commit is contained in:
@@ -335,6 +335,8 @@ void FGEnvironmentMgr::updateClosestAirport()
|
|||||||
|
|
||||||
SGGeod nearestTowerPosition;
|
SGGeod nearestTowerPosition;
|
||||||
std::string nearestIdent;
|
std::string nearestIdent;
|
||||||
|
std::string my_mes;
|
||||||
|
|
||||||
const SGGeod airportGeod;
|
const SGGeod airportGeod;
|
||||||
double towerDistance = numeric_limits<double>::max();
|
double towerDistance = numeric_limits<double>::max();
|
||||||
if (nearestAirport) {
|
if (nearestAirport) {
|
||||||
@@ -423,6 +425,12 @@ void FGEnvironmentMgr::updateClosestAirport()
|
|||||||
if (fgGetString("/sim/airport/nearest-tower-ident") != nearestIdent) {
|
if (fgGetString("/sim/airport/nearest-tower-ident") != nearestIdent) {
|
||||||
SG_LOG(SG_ENVIRONMENT, SG_INFO, "Nearest airport tower now " << nearestIdent);
|
SG_LOG(SG_ENVIRONMENT, SG_INFO, "Nearest airport tower now " << nearestIdent);
|
||||||
fgSetString("/sim/airport/nearest-tower-ident", nearestIdent);
|
fgSetString("/sim/airport/nearest-tower-ident", nearestIdent);
|
||||||
|
|
||||||
|
//zhongjin
|
||||||
|
my_mes = "前方接近塔台 " + nearestIdent;
|
||||||
|
fgSetString("/sim/sound/voices/text", mes);
|
||||||
|
fgSetString("/sim/messages/copilot",mes);
|
||||||
|
|
||||||
}
|
}
|
||||||
if (automaticTowerActive) {
|
if (automaticTowerActive) {
|
||||||
if (fgGetString("/sim/tower/airport-id") != nearestIdent) {
|
if (fgGetString("/sim/tower/airport-id") != nearestIdent) {
|
||||||
|
|||||||
Reference in New Issue
Block a user