comparison mm7_3.cpp @ 239:ea0b5ff2ae23

DrawBook_Map_sub remove goto part2
author zipi
date Sun, 17 Feb 2013 21:13:30 +0000
parents b070b83a897b
children e9fabaf75628
comparison
equal deleted inserted replaced
238:b070b83a897b 239:ea0b5ff2ae23
14453 unsigned int v70; // [sp-10h] [bp-48074h]@80 14453 unsigned int v70; // [sp-10h] [bp-48074h]@80
14454 unsigned int v71; // [sp-Ch] [bp-48070h]@80 14454 unsigned int v71; // [sp-Ch] [bp-48070h]@80
14455 unsigned int v72; // [sp-8h] [bp-4806Ch]@80 14455 unsigned int v72; // [sp-8h] [bp-4806Ch]@80
14456 signed int v73; // [sp-4h] [bp-48068h]@59 14456 signed int v73; // [sp-4h] [bp-48068h]@59
14457 unsigned __int16 v74; // [sp-4h] [bp-48068h]@79 14457 unsigned __int16 v74; // [sp-4h] [bp-48068h]@79
14458 char v75; // [sp+Ch] [bp-48058h]@23 14458 char v75[65535]; // [sp+Ch] [bp-48058h]@23
14459 int v76; // [sp+4800Ch] [bp-58h]@23 14459 int v76; // [sp+4800Ch] [bp-58h]@23
14460 unsigned __int16 *v77; // [sp+48010h] [bp-54h]@27 14460 unsigned __int16 *v77; // [sp+48010h] [bp-54h]@27
14461 unsigned __int16 *v78; // [sp+48014h] [bp-50h]@23 14461 unsigned __int16 *v78; // [sp+48014h] [bp-50h]@23
14462 unsigned int v79; // [sp+48018h] [bp-4Ch]@1 14462 unsigned int v79; // [sp+48018h] [bp-4Ch]@1
14463 unsigned int y_; // [sp+4801Ch] [bp-48h]@1 14463 unsigned int y_; // [sp+4801Ch] [bp-48h]@1
14496 if ( viewparams->field_2C == 768 ) 14496 if ( viewparams->field_2C == 768 )
14497 { 14497 {
14498 if ( uCurrentlyLoadedLevelType == LEVEL_Indoor) 14498 if ( uCurrentlyLoadedLevelType == LEVEL_Indoor)
14499 v5 = 680; 14499 v5 = 680;
14500 } 14500 }
14501 if ( uCurrentlyLoadedLevelType == LEVEL_Indoor) 14501 }
14502 goto LABEL_8; 14502 else
14503 LABEL_23: 14503 {
14504 v6 = viewparams->field_38;
14505 v86 = viewparams->field_38;
14506 v84 = viewparams->field_3A;
14507 if ( uCurrentlyLoadedLevelType == LEVEL_Indoor)
14508 v5 = viewparams->field_2C - 34;
14509 }
14510 if ( uCurrentlyLoadedLevelType != LEVEL_Indoor)
14511 {
14504 v94 = a4 - x_ + 1; 14512 v94 = a4 - x_ + 1;
14505 v92 = a5 - y_ + 1; 14513 v92 = a5 - y_ + 1;
14506 v93 = &pRenderer->pTargetSurface[x_ + y_ * v79]; 14514 v93 = &pRenderer->pTargetSurface[x_ + y_ * v79];
14507 v95 = (unsigned int)pIcons_LOD->pTextures[viewparams->uTextureID_LocationMap].pLevelOfDetail0; 14515 v95 = (unsigned int)pIcons_LOD->pTextures[viewparams->uTextureID_LocationMap].pLevelOfDetail0;
14508 v78 = pIcons_LOD->pTextures[viewparams->uTextureID_LocationMap].pPalette16; 14516 v78 = pIcons_LOD->pTextures[viewparams->uTextureID_LocationMap].pPalette16;
14511 black = 22528 / (v5 / 384); 14519 black = 22528 / (v5 / 384);
14512 teal = (unsigned int)(signed __int64)((double)(v6 - 22528 / (v5 / 384) + 32768) / v30) << 16; 14520 teal = (unsigned int)(signed __int64)((double)(v6 - 22528 / (v5 / 384) + 32768) / v30) << 16;
14513 v97 = (const void *)((unsigned int)(signed __int64)((double)(v6 - 22528 / (v5 / 384) + 32768) / v30) << 16); 14521 v97 = (const void *)((unsigned int)(signed __int64)((double)(v6 - 22528 / (v5 / 384) + 32768) / v30) << 16);
14514 v96 = 32768 - black - v84; 14522 v96 = 32768 - black - v84;
14515 v31 = (signed __int64)((double)v96 / v30); 14523 v31 = (signed __int64)((double)v96 / v30);
14516 v32 = &v75; 14524 v32 = v75;
14517 v33 = pIcons_LOD->pTextures[viewparams->uTextureID_LocationMap].uTextureWidth; 14525 v33 = pIcons_LOD->pTextures[viewparams->uTextureID_LocationMap].uTextureWidth;
14518 v34 = (int)v31 << 16; 14526 v34 = (int)v31 << 16;
14519 v81 = (signed __int16)(signed __int64)((double)(v6 - 22528 / (v5 / 384) + 32768) / v30); 14527 v81 = (signed __int16)(signed __int64)((double)(v6 - 22528 / (v5 / 384) + 32768) / v30);
14520 black = (signed __int16)(signed __int64)((double)(v6 - 22528 / (v5 / 384) + 32768) / v30); 14528 black = (signed __int16)(signed __int64)((double)(v6 - 22528 / (v5 / 384) + 32768) / v30);
14521 v76 = v33; 14529 v76 = v33;
14588 while ( v96 ); 14596 while ( v96 );
14589 } 14597 }
14590 } 14598 }
14591 else 14599 else
14592 { 14600 {
14593 v6 = viewparams->field_38;
14594 v86 = viewparams->field_38;
14595 v84 = viewparams->field_3A;
14596 if ( uCurrentlyLoadedLevelType != LEVEL_Indoor)
14597 goto LABEL_23;
14598 v5 = viewparams->field_2C - 34;
14599 LABEL_8:
14600 black = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0, 0, 0); 14601 black = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0, 0, 0);
14601 teal = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0, 0xFFu, 0xFFu); 14602 teal = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0, 0xFFu, 0xFFu);
14602 v7 = (uint *)pIndoor->pMapOutlines; 14603 v7 = (uint *)pIndoor->pMapOutlines;
14603 uNumBlueFacesInBLVMinimap = 0; 14604 uNumBlueFacesInBLVMinimap = 0;
14604 v8 = pIndoor->pMapOutlines->uNumOutlines == 0; 14605 v8 = pIndoor->pMapOutlines->uNumOutlines == 0;
14846 v61 = (signed __int64)((double)(32768 - v58 - v84) / v57); 14847 v61 = (signed __int64)((double)(32768 - v58 - v84) / v57);
14847 v78 = (unsigned __int16 *)(v60 >> 16); 14848 v78 = (unsigned __int16 *)(v60 >> 16);
14848 v62 = (int)v61 << 16; 14849 v62 = (int)v61 << 16;
14849 teal = v60 >> 16; 14850 teal = v60 >> 16;
14850 v63 = (signed __int16)v61; 14851 v63 = (signed __int16)v61;
14851 a4a = &v75; 14852 a4a = v75;
14852 result = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0xCu, 0xCu, 0xCu); 14853 result = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0xCu, 0xCu, 0xCu);
14853 v85 = 0; 14854 v85 = 0;
14854 for ( i = result; v85 < (signed int)v95; result = v85 ) 14855 for ( i = result; v85 < (signed int)v95; result = v85 )
14855 { 14856 {
14856 a5a = 0; 14857 a5a = 0;
14886 v63 = v62 >> 16; 14887 v63 = v62 >> 16;
14887 ++v85; 14888 ++v85;
14888 teal = (unsigned int)v78; 14889 teal = (unsigned int)v78;
14889 } 14890 }
14890 v65 = v95; 14891 v65 = v95;
14891 v66 = &v75; 14892 v66 = v75;
14892 if ( (signed int)v95 > 0 ) 14893 if ( (signed int)v95 > 0 )
14893 { 14894 {
14894 v67 = v77; 14895 v67 = v77;
14895 result = 2 * (v79 - v90); 14896 result = 2 * (v79 - v90);
14896 do 14897 do