1
1
forked from 0ad/0ad

Fix destruction queue warnings when using some GUI features with time-warp enabled

This was SVN commit r8976.
This commit is contained in:
Ykkrosh 2011-02-24 02:05:06 +00:00
parent f6c1d98c9a
commit e16681f0e5

View File

@ -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)
{