changeset 1228:ac1b79c498a8

m
author Ritor1
date Sat, 08 Jun 2013 15:45:31 +0600
parents 312e895a6439
children eb419a6d48fe
files Indoor.cpp mm7_4.cpp mm7_data.h
diffstat 3 files changed, 7 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/Indoor.cpp	Fri Jun 07 22:27:51 2013 +0600
+++ b/Indoor.cpp	Sat Jun 08 15:45:31 2013 +0600
@@ -768,7 +768,7 @@
             v7 = sub_423B5D(v1);
             if ( v7 )
             {
-              if ( isVisibleRoom(v7, &stru_F8A590, pBLVRenderParams->field_7C, v1) )
+              if ( sub_424829(v7, &stru_F8A590, pBLVRenderParams->field_7C, v1) )
               {
                 if ( v2->uPolygonType == 1 )
                 {
@@ -1384,7 +1384,7 @@
 //          face_min_screenspace_x <= p->uViewportZ &&
           face_max_screenspace_y >= p->uViewportY &&
           face_min_screenspace_y <= p->uViewportW &&
-          isVisibleRoom(num_vertices, &nodes[num_nodes].field_C, &p->field_C, uFaceID))
+          sub_424829(num_vertices, &nodes[num_nodes].field_C, &p->field_C, uFaceID))
         {
           //v17 = v39;
           v18 = pFace->uSectorID;
@@ -1546,7 +1546,7 @@
           && v23 <= *((short *)v20 + 2007)
           && v12 >= *((short *)v20 + 2006)
           && v22 <= *((short *)v20 + 2008)
-          && isVisibleRoom(v10, &v3->nodes[v3->num_nodes].field_C, (BspRenderer_stru2 *)(v20 + 4020), uFaceID) )
+          && sub_424829(v10, &v3->nodes[v3->num_nodes].field_C, (BspRenderer_stru2 *)(v20 + 4020), uFaceID) )
         {
           v16 = v21->uSectorID;
           if ( *((short *)v20 + 2004) == v16 )
@@ -1605,7 +1605,7 @@
         v3 = sub_423B5D(v2);
         if ( v3 )
         {
-          if ( isVisibleRoom(v3, &stru_F8A590, pBLVRenderParams->field_7C, v1) )
+          if ( sub_424829(v3, &stru_F8A590, pBLVRenderParams->field_7C, v1) )
           {
             v4 = stru_F8A590._viewport_space_y;
             v5 = pBLVRenderParams->pRenderTarget;
--- a/mm7_4.cpp	Fri Jun 07 22:27:51 2013 +0600
+++ b/mm7_4.cpp	Sat Jun 08 15:45:31 2013 +0600
@@ -4476,7 +4476,7 @@
         result = sub_423B5D(sFaceID);
         if ( result )
         {
-          result = isVisibleRoom(result, &stru_F8A590, pBLVRenderParams->field_7C, v2);
+          result = sub_424829(result, &stru_F8A590, pBLVRenderParams->field_7C, v2);
           if ( result )
           {
             result = (int)v3->GetTexture();
@@ -4941,7 +4941,7 @@
       v59 = sub_423B5D(uFaceID);
       v3 = v59;
     }
-    if ( v3 && (pRenderer->pRenderD3D || isVisibleRoom(v3, &stru_F8A590, pBLVRenderParams->field_7C, v1)) )
+    if ( v3 && (pRenderer->pRenderD3D || sub_424829(v3, &stru_F8A590, pBLVRenderParams->field_7C, v1)) )
     {
       v4 = v2->GetTexture();
       v5 = 0;
--- a/mm7_data.h	Fri Jun 07 22:27:51 2013 +0600
+++ b/mm7_data.h	Sat Jun 08 15:45:31 2013 +0600
@@ -1217,7 +1217,7 @@
 void __cdecl sub_423B4A();
 int __fastcall sub_423B5D(unsigned int uFaceID);
 signed int __fastcall sub_424579(int uFaceID, struct stru320 *a2);
-bool isVisibleRoom(int pNumVertices, struct BspRenderer_stru2 *a2, struct BspRenderer_stru2 *a3, int uFaceID);
+bool sub_424829(int pNumVertices, struct BspRenderer_stru2 *a2, struct BspRenderer_stru2 *a3, int uFaceID);
 signed int __fastcall sr_424CD7(unsigned int uVertexID); // idb
 signed int __fastcall sr_424EE0_MakeFanFromTriangle(unsigned int uVertexID); // idb
 signed int __fastcall sr_4250FE(unsigned int uVertexID); // idb