comparison Indoor.cpp @ 435:4f451a616d3d

blv reloading fixed
author Nomad
date Sun, 24 Feb 2013 03:07:03 +0200
parents 137c59c3dbc4
children 0dbf780e247f
comparison
equal deleted inserted replaced
434:137c59c3dbc4 435:4f451a616d3d
2883 } 2883 }
2884 if (_a || !dlv.uLastRepawnDay ) 2884 if (_a || !dlv.uLastRepawnDay )
2885 { 2885 {
2886 memcpy(v203, pData, 0x36B); 2886 memcpy(v203, pData, 0x36B);
2887 LABEL_132: 2887 LABEL_132:
2888 free(File); 2888 free(pRawDLV);
2889 dlv.uLastRepawnDay = a3; 2889 dlv.uLastRepawnDay = a3;
2890 if (_v244) 2890 if (_v244)
2891 ++dlv.uNumRespawns; 2891 ++dlv.uNumRespawns;
2892 //v201 = pFilename; 2892 //v201 = pFilename;
2893 *(int *)pDest = 1; 2893 *(int *)pDest = 1;
2894 File = pGames_LOD->FindContainer(pFilename, 0); 2894 File = pGames_LOD->FindContainer(pFilename, 0);
2895 fread(&header, 0x10u, 1u, File); 2895 fread(&header, 0x10u, 1u, File);
2896 auto v155 = header.uCompressedSize; 2896 auto v155 = header.uCompressedSize;
2897 auto Count = header.uDecompressedSize; 2897 auto Count = header.uDecompressedSize;
2898 auto Src = (BLVFace *)malloc(header.uDecompressedSize); 2898 auto Src = (BLVFace *)malloc(header.uDecompressedSize);
2899 File = (FILE *)Src; 2899 pRawDLV = Src;
2900 if ( v155 <= Count ) 2900 if ( v155 <= Count )
2901 { 2901 {
2902 if ( v155 == Count ) 2902 if ( v155 == Count )
2903 { 2903 {
2904 fread(Src, 1u, Count, File); 2904 fread(Src, 1u, Count, File);