Ticket #3309: t3309_cap_expected_simTime_v2.patch
File t3309_cap_expected_simTime_v2.patch, 547 bytes (added by , 9 years ago) |
---|
-
source/network/NetTurnManager.cpp
99 99 return true; 100 100 } 101 101 102 102 bool CNetTurnManager::Update(float simFrameLength, size_t maxTurns) 103 103 { 104 m_DeltaSimTime += simFrameLength;104 m_DeltaSimTime = std::min(m_DeltaSimTime + simFrameLength, simFrameLength); 105 105 106 106 // If we haven't reached the next turn yet, do nothing 107 107 if (m_DeltaSimTime < 0) 108 108 return false; 109 109