******************************************************************/
FGMultiplayTxMgr::FGMultiplayTxMgr() {
- int iPlayerCnt; // Count of players in player array
+ // int iPlayerCnt; // Count of players in player array
// Initialise private members
m_bInitialised = false;
// If Tx port == zero then don't initialise
} else {
- SG_LOG( SG_NETWORK, SG_WARN, "FGMultiplayTxMgr::init - Tx Port is zero. Multiplay out disabled." );
+ SG_LOG( SG_NETWORK, SG_INFO, "FGMultiplayTxMgr::init - Tx Port is zero. Multiplay out disabled." );
bSuccess = false;
}
m_bInitialised = bSuccess;
} else {
- SG_LOG( SG_NETWORK, SG_ALERT, "FGMultiplayTxMgr::init - Attempt to init object that is already opened" );
+ SG_LOG( SG_NETWORK, SG_WARN, "FGMultiplayTxMgr::init - Attempt to init object that is already opened" );
bSuccess = false;
}
* Name: SendMyPosition
* Description: Sends the position data for the local position.
******************************************************************/
-void FGMultiplayTxMgr::SendMyPosition(const sgMat4 PlayerPosMat4) {
+void FGMultiplayTxMgr::SendMyPosition(const sgQuat PlayerOrientation,
+ const sgdVec3 PlayerPosition) {
T_MsgHdr MsgHdr;
T_PositionMsg PosMsg;
char sMsg[sizeof(T_MsgHdr) + sizeof(T_PositionMsg)];
if (m_bInitialised) {
- mLocalPlayer->SetPosition(PlayerPosMat4);
+ mLocalPlayer->SetPosition(PlayerOrientation, PlayerPosition);
mLocalPlayer->FillPosMsg(&MsgHdr, &PosMsg);
memcpy(sMsg, &MsgHdr, sizeof(T_MsgHdr));
memcpy(sMsg + sizeof(T_MsgHdr), &PosMsg, sizeof(T_PositionMsg));
******************************************************************/
void FGMultiplayTxMgr::SendTextMessage(const string &sMsgText) const {
- bool bResult = false;
+ // bool bResult = false;
T_MsgHdr MsgHdr;
T_ChatMsg ChatMsg;
- int iNextBlockPosition = 0;
+ unsigned int iNextBlockPosition = 0;
char sMsg[sizeof(T_MsgHdr) + sizeof(T_ChatMsg)];
if (m_bInitialised) {