Mercurial > mm7
diff Engine/Graphics/IndoorCameraD3D.cpp @ 2570:4d199006c716
debug_terrain_polygin
author | Ritor1 |
---|---|
date | Sun, 24 May 2015 20:49:22 +0600 |
parents | b8a56afc6ba1 |
children |
line wrap: on
line diff
--- a/Engine/Graphics/IndoorCameraD3D.cpp Thu May 21 18:33:07 2015 +0600 +++ b/Engine/Graphics/IndoorCameraD3D.cpp Sun May 24 20:49:22 2015 +0600 @@ -593,24 +593,9 @@ //----- (00437A55) -------------------------------------------------------- void IndoorCameraD3D::debug_outline_d3d(const RenderVertexD3D3 *pLineVertices, unsigned int uNumLines, int uDiffuse, float z_stuff) { - unsigned int v5; // esi@1 - const RenderVertexD3D3 *v6; // ecx@2 - unsigned int v7; // ebx@2 - const RenderVertexD3D3 *v8; // edi@3 - - v5 = 0; - if ( (signed int)(uNumLines - 1) > 0 ) - { - v6 = pLineVertices; - v5 = uNumLines - 1; - for ( v7 = uNumLines - 1; v7; --v7 ) - { - v8 = v6 + 1; - pRenderer->do_draw_debug_line_d3d(v6, uDiffuse, v6 + 1, uDiffuse, z_stuff); - v6 = v8; - } - } - pRenderer->do_draw_debug_line_d3d(&pLineVertices[v5], uDiffuse, pLineVertices, uDiffuse, z_stuff); + for (int i = 0; i < uNumLines-1; ++i) + pRenderer->do_draw_debug_line_d3d(&pLineVertices[i], uDiffuse, &pLineVertices[i+1], uDiffuse, z_stuff); + pRenderer->do_draw_debug_line_d3d(&pLineVertices[uNumLines-1], uDiffuse, pLineVertices, uDiffuse, z_stuff); } //----- (004379EE) --------------------------------------------------------