Mercurial > might-and-magic-trilogy
diff Render.cpp @ 140:5eb242640b6f
24.11.12
author | Ritor1 |
---|---|
date | Sat, 24 Nov 2012 17:12:27 +0600 |
parents | 05b2d9653abc |
children | be8cc11d830a |
line wrap: on
line diff
--- a/Render.cpp Sat Nov 17 17:32:20 2012 +0600 +++ b/Render.cpp Sat Nov 24 17:12:27 2012 +0600 @@ -1839,27 +1839,28 @@ v6 = abs(v83); --X; v93 = &stru_76E5C8[(v5 << 7) + v6]; - if ( !v93->field_0 || ((v7 = 48 * v4, v8 = &pVerticesSR_806210[v4], a2 = v8, !v82) ? (v9 = (RenderVertexSoft *)((char *)&pVerticesSR_801A10 + v7), - v10 = &pVerticesSR_806210[1] + v7) : (v9 = &pVerticesSR_806210[1] + v7, v10 = (RenderVertexSoft *)((char *)&pVerticesSR_801A10 + v7)), - ((a8 = v9, - pVertices = &pVerticesSR_801A10[1] + v7, - v11 = v8->vWorldPosition.x, - v101 = v10, - v12 = v11 + 6.755399441055744e15, - sX = LODWORD(v12), - v13 = v8->vWorldPosition.y + 6.755399441055744e15, - sY = LODWORD(v13), - thisd = (v10->vWorldPosition.x + v8->vWorldPosition.x) * 0.5, - v14 = WorldPosToGridCellX(COERCE_UNSIGNED_INT64(thisd + 6.755399441055744e15)), - v15 = v9->vWorldPosition.y + v8->vWorldPosition.y, - v89 = v14, - thise = v15 * 0.5, - _this = (LightmapBuilder *)WorldPosToGridCellZ(COERCE_UNSIGNED_INT64(thise + 6.755399441055744e15)), - WorldPosToGridCellX(sX), - WorldPosToGridCellZ(sY), - !byte_4D864C) - || !(pGame->uFlags & 0x80)) - && !sub_481EFA(v8, v9, v101, pVertices, 1)) ) + v7 = 48 * v4; + v8 = &pVerticesSR_806210[v4]; + a2 = v8; + if (( !v82 ) ? (v9 = (RenderVertexSoft *)((char *)&pVerticesSR_801A10 + v7), v10 = &pVerticesSR_806210[1] + v7) + : (v9 = &pVerticesSR_806210[1] + v7, v10 = (RenderVertexSoft *)((char *)&pVerticesSR_801A10 + v7))) + a8 = v9; + pVertices = &pVerticesSR_801A10[1] + v7; + v11 = v8->vWorldPosition.x; + v101 = v10; + v12 = v11 + 6.755399441055744e15; + sX = LODWORD(v12); + v13 = v8->vWorldPosition.y + 6.755399441055744e15; + sY = LODWORD(v13); + thisd = (v10->vWorldPosition.x + v8->vWorldPosition.x) * 0.5; + v14 = WorldPosToGridCellX((int)(thisd + 6.755399441055744e15)); + v15 = v9->vWorldPosition.y + v8->vWorldPosition.y; + v89 = v14; + thise = v15 * 0.5; + _this = (LightmapBuilder *)WorldPosToGridCellZ(COERCE_UNSIGNED_INT64(thise + 6.755399441055744e15)); + WorldPosToGridCellX(sX); + WorldPosToGridCellZ(sY); + if ( !v93->field_0 || !byte_4D864C || !(pGame->uFlags & 0x80) && !sub_481EFA(v8, v9, v101, pVertices, 1)) goto LABEL_162; if ( v8->vWorldPosition.z != v9->vWorldPosition.z || v9->vWorldPosition.z != pVertices->vWorldPosition.z || pVertices->vWorldPosition.z != v101->vWorldPosition.z ) break;