comparison mm7_3.cpp @ 1236:d7ba42663d59

m
author Ritor1
date Sun, 09 Jun 2013 21:48:34 +0600
parents 6c55c6bd67e0
children 77ea5c5f2c0b
comparison
equal deleted inserted replaced
1235:7da06d00ad25 1236:d7ba42663d59
11382 } 11382 }
11383 11383
11384 //----- (00440639) -------------------------------------------------------- 11384 //----- (00440639) --------------------------------------------------------
11385 void AddBspNodeToRenderList(unsigned int node_id) 11385 void AddBspNodeToRenderList(unsigned int node_id)
11386 { 11386 {
11387 //int v1; // ebx@1 11387 BLVSector *pSector; // esi@1
11388 signed int v2; // edi@1 11388
11389 BLVSector *v3; // esi@1 11389 pSector = &pIndoor->pSectors[pBspRenderer->nodes[node_id].uSectorID];
11390
11391 //v1 = sector_id;
11392 v2 = 0;
11393 v3 = &pIndoor->pSectors[pBspRenderer->nodes[node_id].uSectorID];
11394 if ( pRenderer->pRenderD3D ) 11390 if ( pRenderer->pRenderD3D )
11395 { 11391 {
11396 for (uint i = 0; i < v3->uNumNonBSPFaces; ++i) 11392 for (uint i = 0; i < pSector->uNumNonBSPFaces; ++i)
11397 //Log::Warning(L"Non-BSP face: %X", v3->pFaceIDs[v2]); 11393 //Log::Warning(L"Non-BSP face: %X", v3->pFaceIDs[v2]);
11398 pBspRenderer->AddFaceToRenderList_d3d(node_id, v3->pFaceIDs[i]); 11394 pBspRenderer->AddFaceToRenderList_d3d(node_id, pSector->pFaceIDs[i]);
11399 } 11395 }
11400 else 11396 else
11401 { 11397 {
11402 if ( v3->uNumNonBSPFaces > 0 ) 11398 for (uint i = 0; i < pSector->uNumNonBSPFaces; ++i)
11403 { 11399 pBspRenderer->AddFaceToRenderList_sw(node_id, pSector->pFaceIDs[i]);
11404 do 11400 }
11405 pBspRenderer->AddFaceToRenderList_sw(node_id, v3->pFaceIDs[v2++]); 11401 if ( pSector->field_0 & 0x10 )
11406 while ( v2 < v3->uNumNonBSPFaces ); 11402 sub_4406BC(node_id, pSector->uFirstBSPNode);
11407 }
11408 }
11409 if ( v3->field_0 & 0x10 )
11410 sub_4406BC(node_id, v3->uFirstBSPNode);
11411 } 11403 }
11412 11404
11413 //----- (004406BC) -------------------------------------------------------- 11405 //----- (004406BC) --------------------------------------------------------
11414 void __fastcall sub_4406BC(unsigned int node_id, unsigned int uFirstNode) 11406 void __fastcall sub_4406BC(unsigned int node_id, unsigned int uFirstNode)
11415 { 11407 {