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

tiny additions

This commit is contained in:
lidgren
2010-12-21 19:40:02 +00:00
parent 330c5cf83e
commit 6989fbda61
2 changed files with 8 additions and 2 deletions

View File

@@ -476,6 +476,7 @@ namespace Lidgren.Network
if (m_senderConnection == null)
throw new NetException("Cannot call ReadTime() on message without a connected sender (ie. unconnected messages)");
// lets bypass NetConnection.GetLocalTime for speed
return remoteTime - m_senderConnection.m_remoteTimeOffset;
}