Mercurial > mm7
diff mm7_3.cpp @ 868:6759478c2f14
m
author | Ritor1 |
---|---|
date | Mon, 01 Apr 2013 09:05:31 +0600 |
parents | 2825b5a9b562 |
children | 715064ae1792 |
line wrap: on
line diff
--- a/mm7_3.cpp Fri Mar 29 10:44:18 2013 +0600 +++ b/mm7_3.cpp Mon Apr 01 09:05:31 2013 +0600 @@ -5988,7 +5988,7 @@ float v28; // [sp+12Ch] [bp-38h]@2 int v29; // [sp+130h] [bp-34h]@4 int v30; // [sp+134h] [bp-30h]@1 - //int v31; // [sp+138h] [bp-2Ch]@2 + float v31; // [sp+138h] [bp-2Ch]@2 int v32; // [sp+13Ch] [bp-28h]@6 int v33; // [sp+140h] [bp-24h]@2 int v34; // [sp+144h] [bp-20h]@1 @@ -5998,6 +5998,7 @@ int v38; // [sp+158h] [bp-Ch]@1 int v39; // [sp+15Ch] [bp-8h]@4 int v40; // [sp+160h] [bp-4h]@7 + float v41; extern bool new_sky; if (new_sky) @@ -6041,7 +6042,9 @@ array_50AC10[3].vWorldViewProjY = pViewport->uViewportTL_Y; v36 = (double)(pViewport->uViewportBR_X - pViewport->uViewportTL_X) * 0.5; - v33 = 65536 / (signed int)(v36 / tan(0.6457717418670654) + 0.5); + v31 = (signed int)(v36 / tan(0.6457717418670654) + 0.5); + //v41 = v31 + 6.7553994e15; + v33 = 65536 / v31; for (int i = 0; i < _this.uNumVertices; ++i) { @@ -6106,18 +6109,18 @@ v37 += ((unsigned __int64)(_this.ptr_38->field_10 * v13) >> 16); 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; + v35 = 224 * pMiscTimer->uTotalGameTimeElapsed + fixpoint_mul(v37, v18) / 8; + v36 = 224 * pMiscTimer->uTotalGameTimeElapsed + fixpoint_mul(v37, v18) / 8; //array_50AC10[i].vWorldViewPosition.x = pOutdoorCamera->shading_dist_mist; //array_50AC10[i].vWorldPosition.x = v36 / (_this.pTexture->uTextureHeight * 65536.0); //array_50AC10[i].vWorldPosition.y = 1.0 / (pOutdoorCamera->shading_dist_mist >> 16); //array_50AC10[i].vWorldPosition.z = v35 / (_this.pTexture->uTextureWidth * 65536.0); array_50AC10[i]._rhw = 1; - //array_50AC10[i].u = (double)v35 / (65536.0 * _this.pTexture->uTextureWidth); - //array_50AC10[i].v = (double)v36 / (65536.0 * _this.pTexture->uTextureHeight); - float t = (GetTickCount() % 96000) / 96000.0f; - array_50AC10[i].u += t; + array_50AC10[i].u += 1.0 / 224 * pMiscTimer->uTotalGameTimeElapsed; + array_50AC10[i].v += 1.0 / 224 * pMiscTimer->uTotalGameTimeElapsed; + //float t = (GetTickCount() % 96000) / 96000.0f; + //array_50AC10[i].u += t; if ( i == _this.uNumVertices - 1 ) { pRenderer->DrawFan(_this.uNumVertices, &_this, pBitmaps_LOD->pHardwareTextures[_this.uTileBitmapID]);