changeset 98:b9196a36b7c9

temporary fix(not lag)
author Ritor1
date Thu, 07 Feb 2013 15:25:44 +0600
parents 8c0fcfa72fce
children b7ff791b1333 2fb33d31ca0d
files Outdoor.cpp Render.cpp Vis.cpp
diffstat 3 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/Outdoor.cpp	Thu Feb 07 13:54:32 2013 +0600
+++ b/Outdoor.cpp	Thu Feb 07 15:25:44 2013 +0600
@@ -101,7 +101,7 @@
   {
     pRenderer->DrawSkyD3D();
     pRenderer->DrawBuildingsD3D();
-    pRenderer->DrawBezierTerrain();// Ritor1: sometimes crash
+    pRenderer->RenderTerrainD3D();//pRenderer->DrawBezierTerrain();// Ritor1: sometimes crash
   }
   else
   {
--- a/Render.cpp	Thu Feb 07 13:54:32 2013 +0600
+++ b/Render.cpp	Thu Feb 07 15:25:44 2013 +0600
@@ -1624,7 +1624,7 @@
 	  v102.v103 = abs((int)pIndoorCamera->uMapGridCellZ - terrain_76D9C8[i]);
       v102.v104 = abs((int)pIndoorCamera->uMapGridCellX - terrain_76DBC8[i]);
 	  if ( pRenderer->pRenderD3D )//Ritor1: do comment to test
-        Render::DrawTerrainD3D(v111, 0, (int)&v102);//Render::RenderTerrainD3D();
+        Render::RenderTerrainD3D();//Render::DrawTerrainD3D(v111, 0, (int)&v102);
       else
         Render::DrawTerrainSW(v111, 0, (int)&v102);
     }
--- a/Vis.cpp	Thu Feb 07 13:54:32 2013 +0600
+++ b/Vis.cpp	Thu Feb 07 15:25:44 2013 +0600
@@ -1417,7 +1417,7 @@
 }
 
 //----- (004C288E) --------------------------------------------------------
-bool Vis::sort_objects_2(RenderVertexSoft *pArray, int sLeft, int sRight)
+bool Vis::sort_objects_2(RenderVertexSoft *pArray, int sLeft, int sRight)//open chest
 {
   bool result; // eax@1
   RenderVertexSoft *v5; // edx@2
@@ -1433,7 +1433,7 @@
   Vis *thisa; // [sp+68h] [bp-8h]@1
   RenderVertexSoft *v16; // [sp+6Ch] [bp-4h]@2
 
-  __debugbreak();
+  //__debugbreak();
 
   result = sRight;
   thisa = this;