1
0
forked from mirrors/0ad

Fix occasionally rendering just terrain and no models when starting a game

This was SVN commit r8988.
This commit is contained in:
Ykkrosh
2011-02-26 00:07:16 +00:00
parent 92e84a9112
commit 6d7c27edfe
+6
View File
@@ -169,6 +169,12 @@ PSRETURN CGame::ReallyStartGame()
if (g_NetClient)
g_NetClient->LoadFinished();
// We need to do an initial Interpolate call to set up all the models etc,
// because Update might never interpolate (e.g. if the game starts paused)
// and we could end up rendering before having set up any models (so they'd
// all be invisible)
Interpolate(0);
debug_printf(L"GAME STARTED, ALL INIT COMPLETE\n");
m_GameStarted=true;