更新 'src/Environment/environment_mgr.cxx'

This commit is contained in:
zhongjin 2022-11-28 13:42:44 +08:00
parent 0a0e3f1063
commit a1d7403b35

View File

@ -428,7 +428,7 @@ void FGEnvironmentMgr::updateClosestAirport()
//zhongjin //zhongjin
my_mes = "前方接近塔台 " + nearestIdent; my_mes = "前方接近塔台 " + nearestIdent;
fgSetString("/sim/sound/voices/text", my_mes); //fgSetString("/sim/sound/voices/text", my_mes);
fgSetString("/sim/messages/copilot",my_mes); fgSetString("/sim/messages/copilot",my_mes);
} }
@ -436,6 +436,11 @@ void FGEnvironmentMgr::updateClosestAirport()
if (fgGetString("/sim/tower/airport-id") != nearestIdent) { if (fgGetString("/sim/tower/airport-id") != nearestIdent) {
fgSetString("/sim/tower/airport-id", nearestIdent); fgSetString("/sim/tower/airport-id", nearestIdent);
SG_LOG(SG_ENVIRONMENT, SG_INFO, "Auto Tower: now " << nearestIdent); SG_LOG(SG_ENVIRONMENT, SG_INFO, "Auto Tower: now " << nearestIdent);
my_mes = "自动连接到塔台 " + nearestIdent;
//fgSetString("/sim/sound/voices/text", my_mes);
fgSetString("/sim/messages/copilot",my_mes);
} }
} }
updateTowerPosition(); updateTowerPosition();