From 37ed7f6024ff55dd4aeddffa6e4bf13d565ad3e1 Mon Sep 17 00:00:00 2001 From: zhongjin Date: Sun, 6 Nov 2022 17:02:09 +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 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/MultiPlayer/multiplaymgr.cxx b/src/MultiPlayer/multiplaymgr.cxx index d9bf31d..d8d3d5b 100644 --- a/src/MultiPlayer/multiplaymgr.cxx +++ b/src/MultiPlayer/multiplaymgr.cxx @@ -729,7 +729,11 @@ namespace { bool verifyProperties(const xdr_data_t* data, const xdr_data_t* end) { + + //zhongjin using namespace simgear; + FlightProperties ifce; + const xdr_data_t* xdr = data; while (xdr < end) { unsigned id = XDR_decode_uint32(*xdr); @@ -1345,6 +1349,8 @@ FGMultiplayMgr::isSane(const FGExternalMotionData& motionInfo) void FGMultiplayMgr::SendMyPosition(const FGExternalMotionData& motionInfo) { + using namespace simgear; + int protocolToUse = getProtocolToUse(); int transmitFilterPropertyBase = pMultiPlayTransmitPropertyBase->getIntValue(); if ((! mInitialised) || (! mHaveServer))