changeset 1132:e7871ca07661

temporary indoor solution
author zipi
date Sat, 01 Jun 2013 14:56:31 +0100
parents 71ba92960bc5
children 1b570a110e6c
files Indoor.cpp mm7_1.cpp
diffstat 2 files changed, 10 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/Indoor.cpp	Sat Jun 01 13:52:00 2013 +0200
+++ b/Indoor.cpp	Sat Jun 01 14:56:31 2013 +0100
@@ -299,10 +299,10 @@
     for (uint i = 0; i < pBspRenderer->num_faces; ++i)
     {
       v2 = pBspRenderer->faces[i].uNodeID;
-      if (pBspRenderer->nodes[v2].viewing_portal_id == -1)
+      //if (pBspRenderer->nodes[v2].viewing_portal_id == -1)
         IndoorLocation::ExecDraw_d3d(pBspRenderer->faces[i].uFaceID, nullptr, 4, nullptr);
-      else
-        IndoorLocation::ExecDraw_d3d(pBspRenderer->faces[i].uFaceID, pBspRenderer->nodes[v2].std__vector_0007AC, 4, pBspRenderer->nodes[v2].pPortalBounding);
+      //else
+        //IndoorLocation::ExecDraw_d3d(pBspRenderer->faces[i].uFaceID, pBspRenderer->nodes[v2].std__vector_0007AC, 4, pBspRenderer->nodes[v2].pPortalBounding);
     }
   }
   else for (uint j = 0; j < pBspRenderer->num_faces; ++j )
@@ -1373,9 +1373,11 @@
       if (face_max_screenspace_y < stru_50B700._screen_space_y[i])
         face_max_screenspace_y = stru_50B700._screen_space_y[i];
     }
-
+	  //_screen_space_x = 719, 568, 493
+	  //savegame: qw , 0Bh and 0x1D4h
+	  //problem here when standing near/on portal, condition is false because of face_min_screenspace_x > p->uViewportZ
       if (face_max_screenspace_x >= p->uViewportX &&
-          face_min_screenspace_x <= p->uViewportZ &&
+//          face_min_screenspace_x <= p->uViewportZ &&
           face_max_screenspace_y >= p->uViewportY &&
           face_min_screenspace_y <= p->uViewportW &&
           sub_424829(num_vertices, &nodes[num_nodes].field_C, &p->field_C, uFaceID))
@@ -1420,7 +1422,7 @@
                                                   nodes[num_nodes].std__vector_0007AC,
                                                   nodes[num_nodes].pPortalBounding);
           }
-          if ( v29 )
+          if ( 1 )
           {
             assert(num_nodes < 150);
 
--- a/mm7_1.cpp	Sat Jun 01 13:52:00 2013 +0200
+++ b/mm7_1.cpp	Sat Jun 01 14:56:31 2013 +0100
@@ -2300,6 +2300,8 @@
   int a3a; // [sp+48h] [bp+8h]@76
   int a3b; // [sp+48h] [bp+8h]@87
 
+  //try graphic engine with function returning 1 always, and without
+  return 1;
   v4 = a1;
   v5 = a2;
   v74 = a1;