Mercurial > mm7
diff Render.cpp @ 49:5a08b193507f
22.01.13
author | Ritor1 |
---|---|
date | Tue, 22 Jan 2013 17:37:50 +0600 |
parents | aac67e0d2c10 |
children | 2ee78ed62d37 |
line wrap: on
line diff
--- a/Render.cpp Mon Jan 21 14:37:14 2013 +0600 +++ b/Render.cpp Tue Jan 22 17:37:50 2013 +0600 @@ -1593,18 +1593,18 @@ v105 = v79; v111 = v75 - v77; do - { + {// âûñîòà ÷åòûðåõ âåðøèí ÿ÷åéêè *(float *)&v106 = (double)v105; - *(float *)((char *)&ptr_801A08->vWorldPosition.x + v127) = *(float *)&v106; + *(float *)((char *)&ptr_801A08->vWorldPosition.x + v127) = *(float *)&v106;//x v105 = (64 - *(int *)((char *)terrain_76D9C8 + v70)) << 9; - *(float *)((char *)&ptr_801A08->vWorldPosition.y + v127) = (double)v105; + *(float *)((char *)&ptr_801A08->vWorldPosition.y + v127) = (double)v105;//y v105 = pOutdoor->GetHeightOnTerrain(v112, *(int *)((char *)terrain_76D9C8 + v70)); - *(float *)((char *)&ptr_801A08->vWorldPosition.z + v127) = (double)v105; - *(float *)((char *)&ptr_801A04->vWorldPosition.x + v127) = *(float *)&v106; + *(float *)((char *)&ptr_801A08->vWorldPosition.z + v127) = (double)v105;//z + *(float *)((char *)&ptr_801A04->vWorldPosition.x + v127) = *(float *)&v106;//x v105 = (63 - *(int *)((char *)terrain_76D9C8 + v70)) << 9; - *(float *)((char *)&ptr_801A04->vWorldPosition.y + v127) = (double)v105; + *(float *)((char *)&ptr_801A04->vWorldPosition.y + v127) = (double)v105;//y v105 = pOutdoor->GetHeightOnTerrain(v112, *(int *)((char *)terrain_76D9C8 + v70) + 1); - *(float *)((char *)&ptr_801A04->vWorldPosition.z + v127) = (double)v105; + *(float *)((char *)&ptr_801A04->vWorldPosition.z + v127) = (double)v105;//z if ( !byte_4D864C || !(pGame->uFlags & 0x80) ) { a1->ViewTransform((RenderVertexSoft *)(char *)ptr_801A08 + v127, 1); @@ -2878,11 +2878,7 @@ { billboard.sZValue = v7; billboard.uFlags = v2; - pRenderer->TransformBillboard( - &billboard, - &pSprites_LOD->pHardwareSprites[v6], - v8, - (RenderBillboard *)(v1 - 40)); + pRenderer->TransformBillboard(&billboard, &pSprites_LOD->pHardwareSprites[v6], v8, (RenderBillboard *)(v1 - 40)); } else { @@ -7083,7 +7079,7 @@ if (pRenderD3D) { pGame->draw_debug_outlines(); - //DoRenderBillboards_D3D(); //Ritor1: it's temporarily + DoRenderBillboards_D3D(); //Ritor1: it's temporarily pGame->pStru6Instance->RenderSpecialEffects(); pRenderD3D->pDevice->EndScene(); } @@ -8228,10 +8224,10 @@ if ( a1->uNumD3DSceneBegins ) { v5 = a2; - v6 = (double)HIWORD(a2->sZValue); + v6 = (double)a2->sZValue; v31 = v6; v7 = v6; - v8 = Billboard_ProbablyAddToListAndSortByZOrder(LODWORD(v7)); + v8 = Billboard_ProbablyAddToListAndSortByZOrder(v7); if ( BYTE3(v5->uTintColor) ) pBillboardRenderListD3D[v8].uOpacity = RenderBillboardD3D::Opaque_3; else @@ -8267,8 +8263,7 @@ pBillboardRenderListD3D[v8].pQuards[0].pos.y = a1b - v26 * v29; v27 = v31 * 1000.0; v13 = 1.0; - pBillboardRenderListD3D[v8].pQuards[0].pos.z = 1.0 - - 1.0 / (v27 / (double)pOutdoorCamera->shading_dist_mist); + pBillboardRenderListD3D[v8].pQuards[0].pos.z = 1.0 - 1.0 / (v27 / (double)pOutdoorCamera->shading_dist_mist); v25 = 1.0 / v31; pBillboardRenderListD3D[v8].pQuards[0].rhw = v25; if ( a3->bUsingSpecular )