示例#1
0
    /// <summary>
    /// Adjusts the timestamps if the server time overflows and reset to 9
    /// </summary>
    void AdjustTimestamps()
    {
        double serverTime = m_network.GetTime();

        if (serverTime < m_previousServerTime)
        {
            for (int i = 0; i < m_nodes.Count; ++i)
            {
                m_nodes[i].ResetTimestamp(serverTime);
            }
        }
        m_previousServerTime = serverTime;
    }