diff --git a/src/game/client/components/menus.cpp b/src/game/client/components/menus.cpp index b4cbedf4b52..775357fad81 100644 --- a/src/game/client/components/menus.cpp +++ b/src/game/client/components/menus.cpp @@ -909,9 +909,8 @@ void CMenus::OnInit() m_TextureBlob = Graphics()->LoadTexture("blob.png", IStorage::TYPE_ALL); // setup load amount - const int NumMenuImages = 5; m_LoadingState.m_Current = 0; - m_LoadingState.m_Total = g_pData->m_NumImages + NumMenuImages + GameClient()->ComponentCount(); + m_LoadingState.m_Total = g_pData->m_NumImages + GameClient()->ComponentCount(); if(!g_Config.m_ClThreadsoundloading) m_LoadingState.m_Total += g_pData->m_NumSounds; @@ -920,6 +919,7 @@ void CMenus::OnInit() // load menu images m_vMenuImages.clear(); Storage()->ListDirectory(IStorage::TYPE_ALL, "menuimages", MenuImageScan, this); + RenderLoading(Localize("Loading DDNet Client"), Localize("Loading menu images"), 0); // load community icons m_vCommunityIcons.clear(); @@ -2445,8 +2445,6 @@ int CMenus::MenuImageScan(const char *pName, int IsDir, int DirType, void *pUser str_truncate(MenuImage.m_aName, sizeof(MenuImage.m_aName), pName, str_length(pName) - str_length(pExtension)); pSelf->m_vMenuImages.push_back(MenuImage); - pSelf->RenderLoading(Localize("Loading DDNet Client"), Localize("Loading menu images"), 1); - return 0; }