comparison Render.cpp @ 96:bb449743ee81

7.01.13(work)
author Ritor1
date Thu, 07 Feb 2013 13:54:23 +0600
parents 7bdf8f1150eb
children b9196a36b7c9
comparison
equal deleted inserted replaced
88:7bdf8f1150eb 96:bb449743ee81
1024 int v123; // [sp+64h] [bp-10h]@1 1024 int v123; // [sp+64h] [bp-10h]@1
1025 int v124; // [sp+68h] [bp-Ch]@1 1025 int v124; // [sp+68h] [bp-Ch]@1
1026 int v125; // [sp+6Ch] [bp-8h]@9 1026 int v125; // [sp+6Ch] [bp-8h]@9
1027 int v126; // [sp+70h] [bp-4h]@9 1027 int v126; // [sp+70h] [bp-4h]@9
1028 1028
1029 v105 = pIndoorCamera->sRotationY / ((signed int)stru_5C6E00->uIntegerHalfPi / 2); 1029 v105 = pIndoorCamera->sRotationY / ((signed int)stru_5C6E00->uIntegerHalfPi / 2);//2
1030 pDirectionIndicator1 = stru_5C6E00->uDoublePiMask & (stru_5C6E00->uIntegerDoublePi - pIndoorCamera->sRotationY);//1536 1030 pDirectionIndicator1 = stru_5C6E00->uDoublePiMask & (stru_5C6E00->uIntegerDoublePi - pIndoorCamera->sRotationY);//1536
1031 pDirectionIndicator2 = stru_5C6E00->uDoublePiMask & (stru_5C6E00->uIntegerPi + pDirectionIndicator1);//512 1031 pDirectionIndicator2 = stru_5C6E00->uDoublePiMask & (stru_5C6E00->uIntegerPi + pDirectionIndicator1);//512
1032 v124 = ((pIndoorCamera->uMapGridCellX << 16) + 3 * stru_5C6E00->SinCos(stru_5C6E00->uDoublePiMask & (stru_5C6E00->uIntegerPi + pDirectionIndicator1))) >> 16; 1032 v124 = ((pIndoorCamera->uMapGridCellX << 16) + 3 * stru_5C6E00->SinCos(stru_5C6E00->uDoublePiMask & (stru_5C6E00->uIntegerPi + pDirectionIndicator1))) >> 16;
1033 v123 = ((pIndoorCamera->uMapGridCellZ << 16) + 3 * stru_5C6E00->SinCos(pDirectionIndicator2 - stru_5C6E00->uIntegerHalfPi)) >> 16; 1033 v123 = ((pIndoorCamera->uMapGridCellZ << 16) + 3 * stru_5C6E00->SinCos(pDirectionIndicator2 - stru_5C6E00->uIntegerHalfPi)) >> 16;
1034 v120 = pOutdoorCamera->outdoor_grid_band_3 + v124;//+- range X 1034 v120 = pOutdoorCamera->outdoor_grid_band_3 + v124;//+- range X
1622 //while ( v116 < v107 ); 1622 //while ( v116 < v107 );
1623 } 1623 }
1624 v102.v103 = abs((int)pIndoorCamera->uMapGridCellZ - terrain_76D9C8[i]); 1624 v102.v103 = abs((int)pIndoorCamera->uMapGridCellZ - terrain_76D9C8[i]);
1625 v102.v104 = abs((int)pIndoorCamera->uMapGridCellX - terrain_76DBC8[i]); 1625 v102.v104 = abs((int)pIndoorCamera->uMapGridCellX - terrain_76DBC8[i]);
1626 if ( pRenderer->pRenderD3D )//Ritor1: do comment to test 1626 if ( pRenderer->pRenderD3D )//Ritor1: do comment to test
1627 Render::RenderTerrainD3D();//Render::DrawTerrainD3D(v111, 0, (int)&v102); 1627 Render::DrawTerrainD3D(v111, 0, (int)&v102);//Render::RenderTerrainD3D();
1628 else 1628 else
1629 Render::DrawTerrainSW(v111, 0, (int)&v102); 1629 Render::DrawTerrainSW(v111, 0, (int)&v102);
1630 } 1630 }
1631 } 1631 }
1632 /* else 1632 /* else
2163 //v26 = pOutdoorCamera->numStru148s - 1999 < 0; 2163 //v26 = pOutdoorCamera->numStru148s - 1999 < 0;
2164 v16->field_58 = floorf(thisf + 0.5f); 2164 v16->field_58 = floorf(thisf + 0.5f);
2165 if ( pOutdoorCamera->numStru148s >= 1999 ) 2165 if ( pOutdoorCamera->numStru148s >= 1999 )
2166 return; 2166 return;
2167 ++pOutdoorCamera->numStru148s; 2167 ++pOutdoorCamera->numStru148s;
2168 if ( !sub_481FC9(v8, pVertices, v101, v16) ) 2168 //if ( !sub_481FC9(v8, pVertices, v101, v16) )//Ritor1: It's temporary
2169 //goto LABEL_126; 2169 //goto LABEL_126;
2170 { 2170 //{
2171 --pOutdoorCamera->numStru148s; 2171 //--pOutdoorCamera->numStru148s;
2172 goto LABEL_162; 2172 //goto LABEL_162;
2173 } 2173 //}
2174 memcpy(&array_50AC10[0], v102, 0x30u); 2174 memcpy(&array_50AC10[0], v102, 0x30u);
2175 array_50AC10[0].flt_20 = 1.0 / (v102->vWorldViewPosition.x + 0.0000001000000011686097); 2175 array_50AC10[0].flt_20 = 1.0 / (v102->vWorldViewPosition.x + 0.0000001000000011686097);
2176 array_50AC10[0].u = 0.0; 2176 array_50AC10[0].u = 0.0;
2177 array_50AC10[0].v = 0.0; 2177 array_50AC10[0].v = 0.0;
2178 memcpy(&array_50AC10[1], pVertices, sizeof(array_50AC10[1])); 2178 memcpy(&array_50AC10[1], pVertices, sizeof(array_50AC10[1]));