Mercurial > mm7
comparison mm7_3.cpp @ 265:96bc024a5fed
Render overflows
author | Nomad |
---|---|
date | Mon, 18 Feb 2013 10:04:47 +0200 |
parents | 96f3a1177b37 |
children | 006188b68143 |
comparison
equal
deleted
inserted
replaced
257:96f3a1177b37 | 265:96bc024a5fed |
---|---|
5652 v7->field_58 = result; | 5652 v7->field_58 = result; |
5653 if ( result < 0 ) | 5653 if ( result < 0 ) |
5654 v7->field_58 = 0; | 5654 v7->field_58 = 0; |
5655 if ( v7->field_58 > 31 ) | 5655 if ( v7->field_58 > 31 ) |
5656 v7->field_58 = 31; | 5656 v7->field_58 = 31; |
5657 if ( pOutdoorCamera->numStru148s >= 1999 ) | 5657 if ( pOutdoorCamera->numStru148s >= 1999 + 5000) |
5658 return result; | 5658 return result; |
5659 ++pOutdoorCamera->numStru148s; | 5659 ++pOutdoorCamera->numStru148s; |
5660 ++pOutdoorCamera->field_44; | 5660 ++pOutdoorCamera->field_44; |
5661 if ( ODMFace::IsBackfaceCulled(pFace, array_73D150, v7) ) | 5661 if ( ODMFace::IsBackfaceCulled(pFace, array_73D150, v7) ) |
5662 { | 5662 { |
5752 if ( v33 & 2 ) | 5752 if ( v33 & 2 ) |
5753 { | 5753 { |
5754 if ( BYTE1(v33) & 0x3C ) | 5754 if ( BYTE1(v33) & 0x3C ) |
5755 v34 = pRenderer->pHDWaterBitmapIDs[0]; | 5755 v34 = pRenderer->pHDWaterBitmapIDs[0]; |
5756 else | 5756 else |
5757 v34 = pRenderer->pHDWaterBitmapIDs[pRenderer->field_1036A8_bitmapid]; | 5757 v34 = pRenderer->pHDWaterBitmapIDs[pRenderer->hd_water_current_frame]; |
5758 v40 = (int)pBitmaps_LOD->pHardwareTextures[v34]; | 5758 v40 = (int)pBitmaps_LOD->pHardwareTextures[v34]; |
5759 } | 5759 } |
5760 else | 5760 else |
5761 { | 5761 { |
5762 v40 = (int)pBitmaps_LOD->pHardwareTextures[v48]; | 5762 v40 = (int)pBitmaps_LOD->pHardwareTextures[v48]; |
8391 { | 8391 { |
8392 __debugbreak(); | 8392 __debugbreak(); |
8393 | 8393 |
8394 ErrD3D(pRenderer->pRenderD3D->pDevice->SetRenderState(D3DRENDERSTATE_ZWRITEENABLE, 0)); | 8394 ErrD3D(pRenderer->pRenderD3D->pDevice->SetRenderState(D3DRENDERSTATE_ZWRITEENABLE, 0)); |
8395 pRenderer->DrawTerrainPolygon(uNumVertices, this, | 8395 pRenderer->DrawTerrainPolygon(uNumVertices, this, |
8396 pBitmaps_LOD->pHardwareTextures[pRenderer->pHDWaterBitmapIDs[pRenderer->field_1036A8_bitmapid]], | 8396 pBitmaps_LOD->pHardwareTextures[pRenderer->pHDWaterBitmapIDs[pRenderer->hd_water_tile_id]], |
8397 0, 0); | 8397 0, 0); |
8398 | 8398 |
8399 ErrD3D(pRenderer->pRenderD3D->pDevice->SetRenderState(D3DRENDERSTATE_ZWRITEENABLE, 1)); | 8399 ErrD3D(pRenderer->pRenderD3D->pDevice->SetRenderState(D3DRENDERSTATE_ZWRITEENABLE, 1)); |
8400 pRenderer->DrawTerrainPolygon(uNumVertices, this, pBitmaps_LOD->pHardwareTextures[uTileBitmapID], 1, 1); | 8400 pRenderer->DrawTerrainPolygon(uNumVertices, this, pBitmaps_LOD->pHardwareTextures[uTileBitmapID], 1, 1); |
8401 } | 8401 } |