1
0
forked from 0ad/0ad

Fixed cinematics playback in Atlas

This was SVN commit r4817.
This commit is contained in:
Ykkrosh 2007-01-28 15:51:28 +00:00
parent b972965968
commit 8ae237478d

View File

@ -199,10 +199,12 @@ void ViewGame::Update(float frameLength)
// Interpolate the graphics - we only want to do it once per visual frame,
// not in every call to g_Game->Update
g_Game->GetSimulation()->Interpolate(actualFrameLength);
if (g_Game->GetView()->GetCinema()->IsPlaying())
g_Game->GetView()->GetCinema()->Update(actualFrameLength);
}
// Cinematic motion should be independent of simulation update, so we can
// preview the cinematics by themselves
if (g_Game->GetView()->GetCinema()->IsPlaying())
g_Game->GetView()->GetCinema()->Update(frameLength);
}
void ViewGame::Render()