Mercurial > mm7
diff LOD.cpp @ 2295:6fd03869f65c
LoadTexture cleaned and add ConvertPNG function
author | Ritor1 |
---|---|
date | Mon, 17 Mar 2014 01:20:15 +0600 |
parents | aff7a7b072b7 |
children | ddb803517a48 |
line wrap: on
line diff
--- a/LOD.cpp Sun Mar 16 19:34:51 2014 +0600 +++ b/LOD.cpp Mon Mar 17 01:20:15 2014 +0600 @@ -2817,8 +2817,6 @@ //LODFile_IconsBitmaps *v3; // esi@1 //unsigned int v4; // edi@1 //Texture *v5; // ebx@2 - unsigned int v6; // ebx@8 - const char *Sourcea; // [sp+14h] [bp+8h]@9 //v3 = this; //v4 = 0; @@ -2841,20 +2839,11 @@ }*/ if (LoadTextureFromLOD(&pTextures[uNumLoadedFiles], pContainer, uTextureType) == -1) { - v6 = 0; - if (uNumLoadedFiles > 0) + for ( uint i = 0; i < uNumLoadedFiles; ++i ) { - Sourcea = (const char *)pTextures; - while ( _stricmp(Sourcea, "pending") ) - { - Sourcea += 72; - ++v6; - if (v6 >= uNumLoadedFiles) - goto LABEL_15; - } - return v6; + if (!_stricmp(pTextures[i].pName, "pending")) + return i; } -LABEL_15: LoadTextureFromLOD(&pTextures[uNumLoadedFiles], "pending", uTextureType); } areWeLoadingTexture = 0;