comparison Render.cpp @ 77:7ad8eaa172c5

Rotate fixed
author Ritor1
date Mon, 28 Jan 2013 23:46:41 +0600
parents 6ef241d53522
children ec84db4c8f9d 41145af69341
comparison
equal deleted inserted replaced
76:5b9ef61560cf 77:7ad8eaa172c5
1001 { 1001 {
1002 char v102[4]; // [sp+Ch] [bp-68h]@191 1002 char v102[4]; // [sp+Ch] [bp-68h]@191
1003 __int16 v103; // [sp+10h] [bp-64h]@190 1003 __int16 v103; // [sp+10h] [bp-64h]@190
1004 __int16 v104; // [sp+12h] [bp-62h]@190 1004 __int16 v104; // [sp+12h] [bp-62h]@190
1005 } v102; 1005 } v102;
1006 int pHeight; // [sp+1Ch] [bp-58h]@1 1006 int v105; // [sp+1Ch] [bp-58h]@1
1007 int v106; // [sp+20h] [bp-54h]@3 1007 int v106; // [sp+20h] [bp-54h]@3
1008 int v107; // [sp+24h] [bp-50h]@3 1008 int v107; // [sp+24h] [bp-50h]@3
1009 int v108; // [sp+28h] [bp-4Ch]@9 1009 int v108; // [sp+28h] [bp-4Ch]@9
1010 int v109; // [sp+2Ch] [bp-48h]@9 1010 int v109; // [sp+2Ch] [bp-48h]@9
1011 int v110; // [sp+30h] [bp-44h]@9 1011 int v110; // [sp+30h] [bp-44h]@9
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 pHeight = pIndoorCamera->sRotationY / ((signed int)stru_5C6E00->uIntegerHalfPi / 2); 1029 v105 = pIndoorCamera->sRotationY / ((signed int)stru_5C6E00->uIntegerHalfPi / 2);
1030 v0 = stru_5C6E00->uDoublePiMask & (stru_5C6E00->uIntegerDoublePi - pIndoorCamera->sRotationY); 1030 v0 = stru_5C6E00->uDoublePiMask & (stru_5C6E00->uIntegerDoublePi - pIndoorCamera->sRotationY);
1031 v1 = stru_5C6E00->uDoublePiMask & (stru_5C6E00->uIntegerPi + v0); 1031 v1 = stru_5C6E00->uDoublePiMask & (stru_5C6E00->uIntegerPi + v0);
1032 v124 = ((pIndoorCamera->uMapGridCellX << 16) + 3 * stru_5C6E00->SinCos( 1032 v124 = ((pIndoorCamera->uMapGridCellX << 16) + 3 * stru_5C6E00->SinCos(
1033 stru_5C6E00->uDoublePiMask & (stru_5C6E00->uIntegerPi + v0))) >> 16; 1033 stru_5C6E00->uDoublePiMask & (stru_5C6E00->uIntegerPi + v0))) >> 16;
1034 v123 = ((pIndoorCamera->uMapGridCellZ << 16) 1034 v123 = ((pIndoorCamera->uMapGridCellZ << 16)
1149 } 1149 }
1150 v16 = 0; 1150 v16 = 0;
1151 v126 = 0; 1151 v126 = 0;
1152 v17 = v117 - 1; 1152 v17 = v117 - 1;
1153 v18 = v116 - 1; 1153 v18 = v116 - 1;
1154 switch ( pHeight ) 1154 switch ( v105 )
1155 { 1155 {
1156 case 0: 1156 case 0:
1157 case 7: 1157 case 7:
1158 { 1158 {
1159 v116 = terrain_76DFC8[v17]; 1159 v116 = terrain_76DFC8[v17];
1566 } 1566 }
1567 v69 = v16 - 1; 1567 v69 = v16 - 1;
1568 ptr_801A08 = pVerticesSR_806210; 1568 ptr_801A08 = pVerticesSR_806210;
1569 ptr_801A04 = pVerticesSR_801A10; 1569 ptr_801A04 = pVerticesSR_801A10;
1570 v126 = v69; 1570 v126 = v69;
1571 if ( pHeight && pHeight != 7 && pHeight != 3 && pHeight != 4 ) 1571 if ( v105 && v105 != 7 && v105 != 3 && v105 != 4 )
1572 { 1572 {
1573 for ( i = v69; i >= 1; --i ) 1573 for ( i = v69; i >= 1; --i )
1574 { 1574 {
1575 //v70 = i; 1575 //v70 = i;
1576 v71 = terrain_76D7C8[i]; 1576 v71 = terrain_76D7C8[i];