1
0
mirror of https://github.com/lidgren/lidgren-network-gen3.git synced 2026-05-16 07:06:30 +09:00

don't write m_messageType in ToString for unsent NetOutgoingMessage

This commit is contained in:
lidgren
2013-02-14 12:15:58 +00:00
parent 8ff63466d0
commit c658d9c09e

View File

@@ -126,7 +126,10 @@ namespace Lidgren.Network
/// </summary>
public override string ToString()
{
return "[NetOutgoingMessage " + m_messageType + " " + this.LengthBytes + " bytes]";
if (m_isSent)
return "[NetOutgoingMessage " + m_messageType + " " + this.LengthBytes + " bytes]";
return "[NetOutgoingMessage " + this.LengthBytes + " bytes]";
}
}
}