diff Render.cpp @ 121:3471df3713e2

Teal line at game's viewport bottom fix
author Nomad
date Mon, 11 Feb 2013 17:29:51 +0200
parents 23b213c3f8e1
children f4d7a9a8c363 77ad59c17864
line wrap: on
line diff
--- a/Render.cpp	Sun Feb 10 23:43:28 2013 +0200
+++ b/Render.cpp	Mon Feb 11 17:29:51 2013 +0200
@@ -1735,7 +1735,7 @@
   int v63; // [sp+50h] [bp-8h]@3
   int v64; // [sp+57h] [bp-1h]@2
   int v62;
-  struct IndoorCameraD3D *pIndoorCameraD3D;
+  //struct IndoorCameraD3D *pIndoorCameraD3D;
 
   v63 = 0;
   // basic optimizations
@@ -1771,9 +1771,9 @@
       pTerrainVertices[z * 128 + x].vWorldPosition.x = (-64 + (signed)x) * 512;
       pTerrainVertices[z * 128 + x].vWorldPosition.y = (64 - (signed)z) * 512;
       pTerrainVertices[z * 128 + x].vWorldPosition.z = 32 * pOutdoor->pTerrain.pHeightmap[z * 128 + x];
-      pIndoorCameraD3D = pGame->pIndoorCameraD3D;
-      pIndoorCameraD3D->ViewTransform(&pTerrainVertices[z * 128 + x], 1);
-      pIndoorCameraD3D->Project(&pTerrainVertices[z * 128 + x], 1, 0);
+      //pIndoorCameraD3D = pGame->pIndoorCameraD3D;
+      pGame->pIndoorCameraD3D->ViewTransform(&pTerrainVertices[z * 128 + x], 1);
+      pGame->pIndoorCameraD3D->Project(&pTerrainVertices[z * 128 + x], 1, 0);
     }
   }
   for (unsigned int z = uStartZ; z < uEndZ - 1; ++z)