diff Indoor.cpp @ 794:4a00901e063c

stru10
author Nomad
date Mon, 25 Mar 2013 11:58:38 +0200
parents 290afbd48b6b
children 472ca68386d4 305ba6e71c71
line wrap: on
line diff
--- a/Indoor.cpp	Mon Mar 25 09:17:42 2013 +0200
+++ b/Indoor.cpp	Mon Mar 25 11:58:38 2013 +0200
@@ -289,7 +289,7 @@
       else
       {
         v3 = pBspRenderer->nodes[v2].std__vector_0007AC;
-        v6 = pBspRenderer->nodes[v2].pVertices;
+        v6 = pBspRenderer->nodes[v2].pPortalBounding;
       }
       IndoorLocation::ExecDraw_d3d(pBspRenderer->faces[i].uFaceID, v3, 4, v6);
     }
@@ -439,7 +439,7 @@
 }
 
 //----- (004B0A25) --------------------------------------------------------
-void IndoorLocation::ExecDraw_d3d(unsigned int uFaceID, IndoorCameraD3D_Vec4 *pVertices, unsigned int uNumVertices, RenderVertexSoft *a4)
+void IndoorLocation::ExecDraw_d3d(unsigned int uFaceID, IndoorCameraD3D_Vec4 *pVertices, unsigned int uNumVertices, RenderVertexSoft *pPortalBounding)
 {
   //unsigned int v4; // esi@1
   char *v5; // eax@4
@@ -515,7 +515,7 @@
     }
 
     if (!pVertices ||
-        (pGame->pStru9Instance->_498377(a4, 4u, pVertices, static_vertices_F7C228, &uNumVerticesa), uNumVerticesa) )
+        (pGame->pStru9Instance->_498377(pPortalBounding, 4u, pVertices, static_vertices_F7C228, &uNumVerticesa), uNumVerticesa) )
     {
       if (pGame->pIndoorCameraD3D->_437285_prolly_colide_vertices_against_frustrum(static_vertices_F7C228, &uNumVerticesa,
                      static_vertices_F7B628, pGame->pIndoorCameraD3D->std__vector_000034_prolly_frustrum, 4, false, 0) != 1 || uNumVerticesa )
@@ -1422,7 +1422,7 @@
           //a0a = pGame->pIndoorCameraD3D;
           if (p->std__vector_0007A8 == -1 )
           {
-            v29 = pGame->pStru10Instance->_49C681_DrawDebugStuff(pFace, nodes[num_nodes].std__vector_0007AC, nodes[num_nodes].pVertices);
+            v29 = pGame->pStru10Instance->MessWithPortal(pFace, nodes[num_nodes].std__vector_0007AC, nodes[num_nodes].pPortalBounding);
           }
           else
           {
@@ -1459,7 +1459,7 @@
               0);
             v29 = pGame->pStru10Instance->_49C5DA(pFace, static_subAddFaceToRenderList_d3d_stru_F79E08, (int *)&a2,
                     nodes[num_nodes].std__vector_0007AC,
-                    nodes[num_nodes].pVertices);
+                    nodes[num_nodes].pPortalBounding);
           }
           if ( v29 )
           {