Mercurial > mm7
diff IndoorCameraD3D.cpp @ 1507:a109bb203e28
UIGame.cpp cleaning(continue) GameUI_DrawMinimap
author | Ritor1 |
---|---|
date | Mon, 02 Sep 2013 17:30:50 +0600 |
parents | 934074e7fcc1 |
children | c4ab816fcc5e |
line wrap: on
line diff
--- a/IndoorCameraD3D.cpp Mon Sep 02 12:03:40 2013 +0600 +++ b/IndoorCameraD3D.cpp Mon Sep 02 17:30:50 2013 +0600 @@ -687,10 +687,8 @@ RenderVertexSoft *v6; // eax@2 RenderVertexSoft *v7; // edi@3 char v8; // zf@3 - IndoorCameraD3D *v9; // [sp+10h] [bp-4h]@1 unsigned int uNumVerticesa; // [sp+20h] [bp+Ch]@2 - v9 = this; v5 = 0; if ( (signed int)(uNumVertices - 1) > 0 ) { @@ -765,17 +763,6 @@ //----- (00437906) -------------------------------------------------------- void IndoorCameraD3D::PrepareAndDrawDebugOutline(BLVFace *pFace, unsigned int uDiffuse) { - char *v3; // eax@2 - signed int v4; // ecx@2 - signed int v5; // ebx@5 - Vec3_short_ *v6; // edx@6 - char *v7; // esi@6 - signed int v8; // ecx@7 - IndoorCameraD3D *thisa; // [sp+8h] [bp-4h]@1 - - thisa = this; - - static RenderVertexSoft static_sub_437906_array_50CDD0[64]; static bool __init_flag1 = false; if (!__init_flag1) @@ -785,25 +772,20 @@ for (uint i = 0; i < 64; ++i) static_sub_437906_array_50CDD0[i].flt_2C = 0.0f; } - - v5 = 0; if ( pFace->uNumVertices ) { - v6 = pIndoor->pVertices; - v7 = (char *)&static_sub_437906_array_50CDD0[0].vWorldPosition.y; - do + for ( uint i = 0; i < pFace->uNumVertices; i++ ) { - v8 = v5++; - *((float *)v7 - 1) = (double)v6[pFace->pVertexIDs[v8]].x; - *(float *)v7 = (double)v6[pFace->pVertexIDs[v8]].y; - v7 += 48; - *((float *)v7 - 11) = (double)v6[pFace->pVertexIDs[v8]].z; - *((float *)v7 - 4) = (double)pFace->pVertexUIDs[v8]; - *((float *)v7 - 3) = (double)pFace->pVertexVIDs[v8]; + static_sub_437906_array_50CDD0[i].vWorldPosition.x = (double)pIndoor->pVertices[pFace->pVertexIDs[i]].x; + static_sub_437906_array_50CDD0[i].vWorldPosition.y = (double)pIndoor->pVertices[pFace->pVertexIDs[i]].y; + static_sub_437906_array_50CDD0[i].vWorldPosition.z = (double)pIndoor->pVertices[pFace->pVertexIDs[i]].z; + static_sub_437906_array_50CDD0[i].u = (double)pFace->pVertexUIDs[i]; + static_sub_437906_array_50CDD0[i].v = (double)pFace->pVertexVIDs[i]; } - while ( v5 < pFace->uNumVertices ); } - debug_outline_sw(static_sub_437906_array_50CDD0, pFace->uNumVertices, uDiffuse, 0.0); + extern bool draw_debug_line; + if ( draw_debug_line ) + debug_outline_sw(static_sub_437906_array_50CDD0, pFace->uNumVertices, uDiffuse, 0.0); } // 50D9D0: using guessed type char static_sub_437906_byte_50D9D0_init_flag;