Hi All,

I got fed up with seeing unnecessary blank lines being displayed on the
console when connected to a MP server so did something about it.

Please find attached a patch to remove the end of line character from
line 507 in src/MultiPlayer/multiplaymgr.cxx.

orginal line:
SG_LOG ( SG_NETWORK, SG_ALERT, "Chat [" << MsgHdr->Callsign << "]"
            << " " << MsgBuf << endl);
changed to 
SG_LOG ( SG_NETWORK, SG_ALERT, "Chat [" << MsgHdr->Callsign << "]"
            << " " << MsgBuf);

SG_LOG adds an endl character to the Log Stream: See
simgear/debug/logstream.hxx.

Regards


George
*** src/MultiPlayer/multiplaymgr.cxx	2006-05-14 12:21:05.000000000 +0930
--- src/MultiPlayer/multiplaymgr.cxx.grp	2006-05-14 12:20:45.000000000 +0930
*************** FGMultiplayMgr::ProcessChatMsg(const cha
*** 504,510 ****
    
    T_ChatMsg* ChatMsg = (T_ChatMsg *)(Msg + sizeof(T_MsgHdr));
    SG_LOG ( SG_NETWORK, SG_ALERT, "Chat [" << MsgHdr->Callsign << "]"
!            << " " << MsgBuf);
    delete [] MsgBuf;
  } // FGMultiplayMgr::ProcessChatMsg ()
  //////////////////////////////////////////////////////////////////////
--- 504,510 ----
    
    T_ChatMsg* ChatMsg = (T_ChatMsg *)(Msg + sizeof(T_MsgHdr));
    SG_LOG ( SG_NETWORK, SG_ALERT, "Chat [" << MsgHdr->Callsign << "]"
!            << " " << MsgBuf << endl);
    delete [] MsgBuf;
  } // FGMultiplayMgr::ProcessChatMsg ()
  //////////////////////////////////////////////////////////////////////

Reply via email to