mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-06-16 05:13:58 -07:00
Stop the animations at the end of visual replays, refs #3581.
This was SVN commit r17709.
This commit is contained in:
parent
e683751b4f
commit
3ec3f0b160
1 changed files with 4 additions and 0 deletions
|
|
@ -285,6 +285,10 @@ void CNetTurnManager::Interpolate(float simFrameLength, float realFrameLength)
|
|||
// we need to save the previous turn length?
|
||||
|
||||
float offset = clamp(m_DeltaSimTime / (m_TurnLength / 1000.f) + 1.0, 0.0, 1.0);
|
||||
|
||||
if (m_FinalTurn > 0 && m_CurrentTurn > m_FinalTurn)
|
||||
simFrameLength = 0;
|
||||
|
||||
m_Simulation2.Interpolate(simFrameLength, offset, realFrameLength);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue