diff mm7_3.cpp @ 265:96bc024a5fed

Render overflows
author Nomad
date Mon, 18 Feb 2013 10:04:47 +0200
parents 96f3a1177b37
children 006188b68143
line wrap: on
line diff
--- a/mm7_3.cpp	Mon Feb 18 09:20:47 2013 +0200
+++ b/mm7_3.cpp	Mon Feb 18 10:04:47 2013 +0200
@@ -5654,7 +5654,7 @@
         v7->field_58 = 0;
       if ( v7->field_58 > 31 )
         v7->field_58 = 31;
-      if ( pOutdoorCamera->numStru148s >= 1999 )
+      if ( pOutdoorCamera->numStru148s >= 1999 + 5000)
         return result;
       ++pOutdoorCamera->numStru148s;
       ++pOutdoorCamera->field_44;
@@ -5754,7 +5754,7 @@
             if ( BYTE1(v33) & 0x3C )
               v34 = pRenderer->pHDWaterBitmapIDs[0];
             else
-              v34 = pRenderer->pHDWaterBitmapIDs[pRenderer->field_1036A8_bitmapid];
+              v34 = pRenderer->pHDWaterBitmapIDs[pRenderer->hd_water_current_frame];
             v40 = (int)pBitmaps_LOD->pHardwareTextures[v34];
           }
           else
@@ -8393,7 +8393,7 @@
 
   ErrD3D(pRenderer->pRenderD3D->pDevice->SetRenderState(D3DRENDERSTATE_ZWRITEENABLE, 0));
   pRenderer->DrawTerrainPolygon(uNumVertices, this,
-    pBitmaps_LOD->pHardwareTextures[pRenderer->pHDWaterBitmapIDs[pRenderer->field_1036A8_bitmapid]],
+    pBitmaps_LOD->pHardwareTextures[pRenderer->pHDWaterBitmapIDs[pRenderer->hd_water_tile_id]],
     0, 0);
 
   ErrD3D(pRenderer->pRenderD3D->pDevice->SetRenderState(D3DRENDERSTATE_ZWRITEENABLE, 1));