# HG changeset patch # User Ritor1 # Date 1362540489 -21600 # Node ID a295c9f956d13a079d551660d5ede145f1dcaee6 # Parent fdea951756f95096a3afe34a0ea42df18b792a7b m diff -r fdea951756f9 -r a295c9f956d1 mm7_3.cpp --- a/mm7_3.cpp Tue Mar 05 10:45:40 2013 +0600 +++ b/mm7_3.cpp Wed Mar 06 09:28:09 2013 +0600 @@ -6164,7 +6164,7 @@ array_50AC10[3].vWorldViewProjX = pViewport->uViewportZ; array_50AC10[3].vWorldViewProjY = v38; - v36 = (double)(pViewport->uViewportZ - pViewport->uViewportX) * 0.5; + /*v36 = (double)(pViewport->uViewportZ - pViewport->uViewportX) * 0.5; v33 = 65536 / (signed int)(v36 / tan(0.6457717418670654) + 0.5); for (int i = 0; i < _this.uNumVertices; ++i) @@ -6232,33 +6232,33 @@ v36 += ((unsigned __int64)(_this.ptr_38->field_1C * v13) >> 16); v35 = 224 * pMiscTimer->uTotalGameTimeElapsed + (signed int)((unsigned __int64)(v37 * v18) >> 16) / 8; v36 = 224 * pMiscTimer->uTotalGameTimeElapsed + (signed int)((unsigned __int64)(v36 * v18) >> 16) / 8; - - array_50AC10[i].vWorldViewPosition.x = pOutdoorCamera->shading_dist_mist; - array_50AC10[i]._rhw = 1; + */ + //array_50AC10[i].vWorldViewPosition.x = pOutdoorCamera->shading_dist_mist; + //array_50AC10[i]._rhw = 1; //array_50AC10[i].u = (double)v35 / (65536.0 * pBitmaps_LOD->pTextures[pOutdoor->uSky_TextureID].uTextureWidth); //array_50AC10[i].v = (double)v36 / (65536.0 * pBitmaps_LOD->pTextures[pOutdoor->uSky_TextureID].uTextureWidth); - } + //} if ( _this.uNumVertices > 0) { float t = (GetTickCount() % 96000) / 96000.0f; - //array_50AC10[0].vWorldViewPosition.x = pOutdoorCamera->shading_dist_mist; - //array_50AC10[0]._rhw = 1; + array_50AC10[0].vWorldViewPosition.x = pOutdoorCamera->shading_dist_mist; + array_50AC10[0]._rhw = 1; array_50AC10[0].u = 0; array_50AC10[0].v = 0 + t; - //array_50AC10[1].vWorldViewPosition.x = pOutdoorCamera->shading_dist_mist; - //array_50AC10[1]._rhw = 1; + array_50AC10[1].vWorldViewPosition.x = pOutdoorCamera->shading_dist_mist; + array_50AC10[1]._rhw = 1; array_50AC10[1].u = 0; array_50AC10[1].v = 1 + t; - //array_50AC10[2].vWorldViewPosition.x = pOutdoorCamera->shading_dist_mist; - //array_50AC10[2]._rhw = 1; + array_50AC10[2].vWorldViewPosition.x = pOutdoorCamera->shading_dist_mist; + array_50AC10[2]._rhw = 1; array_50AC10[2].u = 1; array_50AC10[2].v = 0 + t; - //array_50AC10[3].vWorldViewPosition.x = pOutdoorCamera->shading_dist_mist; - //array_50AC10[3]._rhw = 1; + array_50AC10[3].vWorldViewPosition.x = pOutdoorCamera->shading_dist_mist; + array_50AC10[3]._rhw = 1; array_50AC10[3].u = 1; array_50AC10[3].v = 1 + t; pRenderer->DrawStrip(_this.uNumVertices, &_this, pBitmaps_LOD->pHardwareTextures[_this.uTileBitmapID]);