# HG changeset patch # User Nomad # Date 1361668023 -7200 # Node ID 4f451a616d3d959cc007620899dd1953d4b22c34 # Parent 137c59c3dbc4be32ae6c40bac4c0e413c21609b2 blv reloading fixed diff -r 137c59c3dbc4 -r 4f451a616d3d Indoor.cpp --- a/Indoor.cpp Sun Feb 24 01:42:35 2013 +0200 +++ b/Indoor.cpp Sun Feb 24 03:07:03 2013 +0200 @@ -2885,7 +2885,7 @@ { memcpy(v203, pData, 0x36B); LABEL_132: - free(File); + free(pRawDLV); dlv.uLastRepawnDay = a3; if (_v244) ++dlv.uNumRespawns; @@ -2896,7 +2896,7 @@ auto v155 = header.uCompressedSize; auto Count = header.uDecompressedSize; auto Src = (BLVFace *)malloc(header.uDecompressedSize); - File = (FILE *)Src; + pRawDLV = Src; if ( v155 <= Count ) { if ( v155 == Count ) diff -r 137c59c3dbc4 -r 4f451a616d3d mm7_4.cpp --- a/mm7_4.cpp Sun Feb 24 01:42:35 2013 +0200 +++ b/mm7_4.cpp Sun Feb 24 03:07:03 2013 +0200 @@ -260,7 +260,7 @@ //BLVFace *v23; // eax@33 //int v24; // esi@39 //int v25; // edi@39 - int v26; // esi@41 + //int v26; // esi@41 int v27; // ecx@43 signed int v28; // eax@45 int v29; // ebx@47 @@ -446,7 +446,7 @@ v54 = 0; v51 = 0; v49 = word_721390[0] >= y; - if ( v26 > 0 ) + if ( portal->uNumVertices > 0 ) { do { @@ -480,7 +480,8 @@ ++v51; v49 = v47; } - while ( v51 < v26 ); + while ( v51 < 2 * portal->uNumVertices ); + if ( v54 == 1 ) { if ( v55 >= 50 )