You've already forked lidgren-network-gen3
mirror of
https://github.com/lidgren/lidgren-network-gen3.git
synced 2026-05-19 00:26:30 +09:00
Minor tweaks
This commit is contained in:
@@ -149,7 +149,7 @@ namespace Lidgren.Network
|
|||||||
if (onLibraryThread)
|
if (onLibraryThread)
|
||||||
m_peer.VerifyNetworkThread();
|
m_peer.VerifyNetworkThread();
|
||||||
|
|
||||||
NetOutgoingMessage om = m_peer.CreateMessage(m_peerConfiguration.AppIdentifier.Length + 13);
|
NetOutgoingMessage om = m_peer.CreateMessage(m_peerConfiguration.AppIdentifier.Length + 13 + (m_localHailMessage == null ? 0 : m_localHailMessage.LengthBytes));
|
||||||
om.m_messageType = NetMessageType.ConnectResponse;
|
om.m_messageType = NetMessageType.ConnectResponse;
|
||||||
om.Write(m_peerConfiguration.AppIdentifier);
|
om.Write(m_peerConfiguration.AppIdentifier);
|
||||||
om.Write(m_peer.m_uniqueIdentifier);
|
om.Write(m_peer.m_uniqueIdentifier);
|
||||||
@@ -250,7 +250,7 @@ namespace Lidgren.Network
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public void Deny()
|
public void Deny()
|
||||||
{
|
{
|
||||||
Deny("");
|
Deny(string.Empty);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
@@ -214,7 +214,7 @@ namespace Lidgren.Network
|
|||||||
if (string.IsNullOrEmpty(text))
|
if (string.IsNullOrEmpty(text))
|
||||||
{
|
{
|
||||||
retval = CreateIncomingMessage(tp, 1);
|
retval = CreateIncomingMessage(tp, 1);
|
||||||
retval.Write("");
|
retval.Write(string.Empty);
|
||||||
return retval;
|
return retval;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user