Fix destruction queue warnings when using some GUI features with time-warp enabled
This was SVN commit r8976.
This commit is contained in:
parent
f6c1d98c9a
commit
e16681f0e5
@ -129,6 +129,11 @@ bool CNetTurnManager::Update(float frameLength, size_t maxTurns)
|
||||
|
||||
m_CurrentTurn += 1; // increase the turn number now, so Update can send new commands for a subsequent turn
|
||||
|
||||
// Clean up any destroyed entities since the last turn (e.g. placement previews
|
||||
// or rally point flags generated by the GUI). (Must do this before the time warp
|
||||
// serialization.)
|
||||
m_Simulation2.FlushDestroyedEntities();
|
||||
|
||||
// Save the current state for rewinding, if enabled
|
||||
if (m_TimeWarpNumTurns && (m_CurrentTurn % m_TimeWarpNumTurns) == 0)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user