added fix by Sworddragon for stopped loading bar at the beginning

This commit is contained in:
oy 2010-09-22 00:30:08 +02:00
parent fc486cb0ab
commit 55434a2a57

View file

@ -253,7 +253,7 @@ void CGameClient::OnInit()
// load textures
for(int i = 0; i < g_pData->m_NumImages; i++)
{
g_GameClient.m_pMenus->RenderLoading(gs_LoadCurrent/gs_LoadTotal);
g_GameClient.m_pMenus->RenderLoading(gs_LoadCurrent/(float)gs_LoadTotal);
g_pData->m_aImages[i].m_Id = Graphics()->LoadTexture(g_pData->m_aImages[i].m_pFilename, CImageInfo::FORMAT_AUTO, 0);
gs_LoadCurrent++;
}