diff mm7_3.cpp @ 666:a5750c94b022

BSP
author Ritor1
date Wed, 13 Mar 2013 17:08:21 +0600
parents 92bc2544249d
children 92c1e1250e7c
line wrap: on
line diff
--- a/mm7_3.cpp	Wed Mar 13 10:13:02 2013 +0600
+++ b/mm7_3.cpp	Wed Mar 13 17:08:21 2013 +0600
@@ -11148,19 +11148,19 @@
 
   if (pBLVRenderParams->uPartySectorID)
   {
-    pBspRenderer->field_FA8[0].uSectorID = pBLVRenderParams->uPartySectorID;
-    pBspRenderer->field_FA8[0].uViewportW = pBLVRenderParams->uViewportW;
-    pBspRenderer->field_FA8[0].uViewportZ = pBLVRenderParams->uViewportZ;
-    pBspRenderer->field_FA8[0].uViewportY = pBLVRenderParams->uViewportY;
-    pBspRenderer->field_FA8[0].uViewportX = pBLVRenderParams->uViewportX;
-    pBspRenderer->field_FA8[0].field_C._43F9E1(
+    pBspRenderer->pSectors[0].uSectorID = pBLVRenderParams->uPartySectorID;
+    pBspRenderer->pSectors[0].uViewportW = pBLVRenderParams->uViewportW;
+    pBspRenderer->pSectors[0].uViewportZ = pBLVRenderParams->uViewportZ;
+    pBspRenderer->pSectors[0].uViewportY = pBLVRenderParams->uViewportY;
+    pBspRenderer->pSectors[0].uViewportX = pBLVRenderParams->uViewportX;
+    pBspRenderer->pSectors[0].field_C._43F9E1(
       pBLVRenderParams->uViewportX,
       pBLVRenderParams->uViewportY,
       pBLVRenderParams->uViewportZ,
       pBLVRenderParams->uViewportW);
-    pBspRenderer->field_FA8[0].uFaceID = -1;
-    pBspRenderer->field_FA8[0].std__vector_0007A8 = -1;
-    pBspRenderer->std__vector_000FA8 = 1;
+    pBspRenderer->pSectors[0].uFaceID = -1;
+    pBspRenderer->pSectors[0].std__vector_0007A8 = -1;
+    pBspRenderer->pNumSectors = 1;
     sub_440639(0);
   }
 
@@ -11524,7 +11524,7 @@
 
   v1 = a1;
   v2 = 0;
-  v3 = &pIndoor->pSectors[pBspRenderer->field_FA8[a1].uSectorID];
+  v3 = &pIndoor->pSectors[pBspRenderer->pSectors[a1].uSectorID];
   if ( pRenderer->pRenderD3D )
   {
     for (uint i = 0; i < v3->uNumNonBSPFaces; ++i)
@@ -11562,7 +11562,7 @@
   //Log::Warning(L"sub_4406BC(%u, %u)", a1, uFirstNode);
 
   v10 = a1;
-  v12 = &pBspRenderer->field_FA8[a1];
+  v12 = &pBspRenderer->pSectors[a1];
   while ( 1 )
   {
     v2 = &pIndoor->pSectors[v12->uSectorID];