From 4d7cb4878bc6f725564309ad8611926fd1ce0185 Mon Sep 17 00:00:00 2001 From: zhongjin Date: Mon, 7 Nov 2022 15:49:44 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'src/MultiPlayer/multiplay?= =?UTF-8?q?mgr.cxx'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/MultiPlayer/multiplaymgr.cxx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/MultiPlayer/multiplaymgr.cxx b/src/MultiPlayer/multiplaymgr.cxx index a4edc58..bdacbd4 100644 --- a/src/MultiPlayer/multiplaymgr.cxx +++ b/src/MultiPlayer/multiplaymgr.cxx @@ -1438,6 +1438,11 @@ FGMultiplayMgr::SendMyPosition(const FGExternalMotionData& motionInfo) //zhongjin + std::string mAirportid = fgGetString("/instrumentation/comm/airport-id"); + strncpy(MsgHdr->Callsign, mAirportid.c_str(), 4); + MsgHdr->Callsign[4 - 1] = '\0'; + + float heading = ifce.get_Psi(); float pitch = ifce.get_Theta(); float roll = ifce.get_Phi();