Mercurial > mm7
diff mm7_3.cpp @ 1236:d7ba42663d59
m
author | Ritor1 |
---|---|
date | Sun, 09 Jun 2013 21:48:34 +0600 |
parents | 6c55c6bd67e0 |
children | 77ea5c5f2c0b |
line wrap: on
line diff
--- a/mm7_3.cpp Sun Jun 09 21:10:32 2013 +0600 +++ b/mm7_3.cpp Sun Jun 09 21:48:34 2013 +0600 @@ -11384,30 +11384,22 @@ //----- (00440639) -------------------------------------------------------- void AddBspNodeToRenderList(unsigned int node_id) { - //int v1; // ebx@1 - signed int v2; // edi@1 - BLVSector *v3; // esi@1 - - //v1 = sector_id; - v2 = 0; - v3 = &pIndoor->pSectors[pBspRenderer->nodes[node_id].uSectorID]; + BLVSector *pSector; // esi@1 + + pSector = &pIndoor->pSectors[pBspRenderer->nodes[node_id].uSectorID]; if ( pRenderer->pRenderD3D ) { - for (uint i = 0; i < v3->uNumNonBSPFaces; ++i) + for (uint i = 0; i < pSector->uNumNonBSPFaces; ++i) //Log::Warning(L"Non-BSP face: %X", v3->pFaceIDs[v2]); - pBspRenderer->AddFaceToRenderList_d3d(node_id, v3->pFaceIDs[i]); - } - else - { - if ( v3->uNumNonBSPFaces > 0 ) - { - do - pBspRenderer->AddFaceToRenderList_sw(node_id, v3->pFaceIDs[v2++]); - while ( v2 < v3->uNumNonBSPFaces ); - } - } - if ( v3->field_0 & 0x10 ) - sub_4406BC(node_id, v3->uFirstBSPNode); + pBspRenderer->AddFaceToRenderList_d3d(node_id, pSector->pFaceIDs[i]); + } + else + { + for (uint i = 0; i < pSector->uNumNonBSPFaces; ++i) + pBspRenderer->AddFaceToRenderList_sw(node_id, pSector->pFaceIDs[i]); + } + if ( pSector->field_0 & 0x10 ) + sub_4406BC(node_id, pSector->uFirstBSPNode); } //----- (004406BC) --------------------------------------------------------