Mercurial > mm7
changeset 435:4f451a616d3d
blv reloading fixed
author | Nomad |
---|---|
date | Sun, 24 Feb 2013 03:07:03 +0200 |
parents | 137c59c3dbc4 |
children | 4a42c2f97aa2 0a1ea44b4a0a 5e5dfedcc0ad |
files | Indoor.cpp mm7_4.cpp |
diffstat | 2 files changed, 6 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- 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 )
--- 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 )