comparison Render.cpp @ 140:5eb242640b6f

24.11.12
author Ritor1
date Sat, 24 Nov 2012 17:12:27 +0600
parents 05b2d9653abc
children be8cc11d830a
comparison
equal deleted inserted replaced
138:4e1e3fe8502f 140:5eb242640b6f
1837 { 1837 {
1838 v5 = abs(X); 1838 v5 = abs(X);
1839 v6 = abs(v83); 1839 v6 = abs(v83);
1840 --X; 1840 --X;
1841 v93 = &stru_76E5C8[(v5 << 7) + v6]; 1841 v93 = &stru_76E5C8[(v5 << 7) + v6];
1842 if ( !v93->field_0 || ((v7 = 48 * v4, v8 = &pVerticesSR_806210[v4], a2 = v8, !v82) ? (v9 = (RenderVertexSoft *)((char *)&pVerticesSR_801A10 + v7), 1842 v7 = 48 * v4;
1843 v10 = &pVerticesSR_806210[1] + v7) : (v9 = &pVerticesSR_806210[1] + v7, v10 = (RenderVertexSoft *)((char *)&pVerticesSR_801A10 + v7)), 1843 v8 = &pVerticesSR_806210[v4];
1844 ((a8 = v9, 1844 a2 = v8;
1845 pVertices = &pVerticesSR_801A10[1] + v7, 1845 if (( !v82 ) ? (v9 = (RenderVertexSoft *)((char *)&pVerticesSR_801A10 + v7), v10 = &pVerticesSR_806210[1] + v7)
1846 v11 = v8->vWorldPosition.x, 1846 : (v9 = &pVerticesSR_806210[1] + v7, v10 = (RenderVertexSoft *)((char *)&pVerticesSR_801A10 + v7)))
1847 v101 = v10, 1847 a8 = v9;
1848 v12 = v11 + 6.755399441055744e15, 1848 pVertices = &pVerticesSR_801A10[1] + v7;
1849 sX = LODWORD(v12), 1849 v11 = v8->vWorldPosition.x;
1850 v13 = v8->vWorldPosition.y + 6.755399441055744e15, 1850 v101 = v10;
1851 sY = LODWORD(v13), 1851 v12 = v11 + 6.755399441055744e15;
1852 thisd = (v10->vWorldPosition.x + v8->vWorldPosition.x) * 0.5, 1852 sX = LODWORD(v12);
1853 v14 = WorldPosToGridCellX(COERCE_UNSIGNED_INT64(thisd + 6.755399441055744e15)), 1853 v13 = v8->vWorldPosition.y + 6.755399441055744e15;
1854 v15 = v9->vWorldPosition.y + v8->vWorldPosition.y, 1854 sY = LODWORD(v13);
1855 v89 = v14, 1855 thisd = (v10->vWorldPosition.x + v8->vWorldPosition.x) * 0.5;
1856 thise = v15 * 0.5, 1856 v14 = WorldPosToGridCellX((int)(thisd + 6.755399441055744e15));
1857 _this = (LightmapBuilder *)WorldPosToGridCellZ(COERCE_UNSIGNED_INT64(thise + 6.755399441055744e15)), 1857 v15 = v9->vWorldPosition.y + v8->vWorldPosition.y;
1858 WorldPosToGridCellX(sX), 1858 v89 = v14;
1859 WorldPosToGridCellZ(sY), 1859 thise = v15 * 0.5;
1860 !byte_4D864C) 1860 _this = (LightmapBuilder *)WorldPosToGridCellZ(COERCE_UNSIGNED_INT64(thise + 6.755399441055744e15));
1861 || !(pGame->uFlags & 0x80)) 1861 WorldPosToGridCellX(sX);
1862 && !sub_481EFA(v8, v9, v101, pVertices, 1)) ) 1862 WorldPosToGridCellZ(sY);
1863 if ( !v93->field_0 || !byte_4D864C || !(pGame->uFlags & 0x80) && !sub_481EFA(v8, v9, v101, pVertices, 1))
1863 goto LABEL_162; 1864 goto LABEL_162;
1864 if ( v8->vWorldPosition.z != v9->vWorldPosition.z || v9->vWorldPosition.z != pVertices->vWorldPosition.z || pVertices->vWorldPosition.z != v101->vWorldPosition.z ) 1865 if ( v8->vWorldPosition.z != v9->vWorldPosition.z || v9->vWorldPosition.z != pVertices->vWorldPosition.z || pVertices->vWorldPosition.z != v101->vWorldPosition.z )
1865 break; 1866 break;
1866 v16 = &array_77EC08[pOutdoorCamera->numStru148s]; 1867 v16 = &array_77EC08[pOutdoorCamera->numStru148s];
1867 v17 = pOutdoor->GetTileTexture(sX, sY); 1868 v17 = pOutdoor->GetTileTexture(sX, sY);