]> git.mxchange.org Git - flightgear.git/blobdiff - src/MultiPlayer/multiplaytxmgr.cxx
- don't abort if remote model isn't installed; output missing model's
[flightgear.git] / src / MultiPlayer / multiplaytxmgr.cxx
index 4ec00060207c93340791c166b5523e4977ed5c2d..ff7079a803f1efd9d74d5a3bb88d83129f00c4ef 100644 (file)
@@ -64,7 +64,7 @@ const char sMULTIPLAYTXMGR_HID[] = MULTIPLAYTXMGR_HID;
 ******************************************************************/
 FGMultiplayTxMgr::FGMultiplayTxMgr() {
 
-    int iPlayerCnt;         // Count of players in player array
+    // int iPlayerCnt;         // Count of players in player array
 
     // Initialise private members
     m_bInitialised = false;
@@ -139,7 +139,7 @@ bool FGMultiplayTxMgr::init(void) {
         // 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;
 
         }
@@ -148,7 +148,7 @@ bool FGMultiplayTxMgr::init(void) {
         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;
     }
 
@@ -216,10 +216,10 @@ void FGMultiplayTxMgr::SendMyPosition(const sgMat4 PlayerPosMat4) {
 ******************************************************************/
 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) {