send map when arriving late
This commit is contained in:
@@ -47,6 +47,16 @@ protocol::packets::LockStepResponsePacket ServerSimulation::GetResponse(
|
||||
return {result};
|
||||
}
|
||||
|
||||
std::vector<protocol::LockStep> ServerSimulation::GetFirstLocksteps() {
|
||||
std::vector<protocol::LockStep> result;
|
||||
if (m_CurrentTime <= LOCKSTEP_BUFFER_SIZE)
|
||||
return result;
|
||||
|
||||
result.reserve(m_CurrentTime);
|
||||
result.insert(result.begin(), m_History.begin(), m_History.begin() + m_CurrentTime);
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
} // namespace sim
|
||||
} // namespace td
|
||||
|
||||
Reference in New Issue
Block a user