1
1
forked from 0ad/0ad

Fix assertion failure in replay mode

This was SVN commit r9757.
This commit is contained in:
Ykkrosh 2011-07-04 15:17:46 +00:00
parent fc2b89a780
commit 528b833db0

View File

@ -272,7 +272,7 @@ bool CGame::Update(double deltaTime, bool doInterpolate)
// TODO: maybe we should add a CCmpParticleInterface that passes the interpolation commands
// etc to CParticleManager. But in the meantime just handle it explicitly here.
if (doInterpolate)
if (doInterpolate && CRenderer::IsInitialised())
g_Renderer.GetParticleManager().Interpolate(deltaTime);
return ok;
@ -285,7 +285,8 @@ void CGame::Interpolate(float frameLength)
m_TurnManager->Interpolate(frameLength);
g_Renderer.GetParticleManager().Interpolate(frameLength);
if (CRenderer::IsInitialised())
g_Renderer.GetParticleManager().Interpolate(frameLength);
}