forked from 0ad/0ad
Fix assertion failure in replay mode
This was SVN commit r9757.
This commit is contained in:
parent
fc2b89a780
commit
528b833db0
@ -272,7 +272,7 @@ bool CGame::Update(double deltaTime, bool doInterpolate)
|
|||||||
|
|
||||||
// TODO: maybe we should add a CCmpParticleInterface that passes the interpolation commands
|
// TODO: maybe we should add a CCmpParticleInterface that passes the interpolation commands
|
||||||
// etc to CParticleManager. But in the meantime just handle it explicitly here.
|
// etc to CParticleManager. But in the meantime just handle it explicitly here.
|
||||||
if (doInterpolate)
|
if (doInterpolate && CRenderer::IsInitialised())
|
||||||
g_Renderer.GetParticleManager().Interpolate(deltaTime);
|
g_Renderer.GetParticleManager().Interpolate(deltaTime);
|
||||||
|
|
||||||
return ok;
|
return ok;
|
||||||
@ -285,7 +285,8 @@ void CGame::Interpolate(float frameLength)
|
|||||||
|
|
||||||
m_TurnManager->Interpolate(frameLength);
|
m_TurnManager->Interpolate(frameLength);
|
||||||
|
|
||||||
g_Renderer.GetParticleManager().Interpolate(frameLength);
|
if (CRenderer::IsInitialised())
|
||||||
|
g_Renderer.GetParticleManager().Interpolate(frameLength);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user