Mercurial > mm7
comparison mm7_3.cpp @ 2334:ddb803517a48
unused local variables I commented
author | Ritor1 |
---|---|
date | Wed, 02 Apr 2014 21:05:19 +0600 |
parents | 9551756f46c4 |
children | d6887ee81068 |
comparison
equal
deleted
inserted
replaced
2333:82851980e3d8 | 2334:ddb803517a48 |
---|---|
629 { | 629 { |
630 int v3; // ebx@6 | 630 int v3; // ebx@6 |
631 int v5; // eax@10 | 631 int v5; // eax@10 |
632 int v6; // ecx@10 | 632 int v6; // ecx@10 |
633 signed int v8; // ebx@17 | 633 signed int v8; // ebx@17 |
634 unsigned __int8 v10; // sf@17 | 634 // unsigned __int8 v10; // sf@17 |
635 unsigned __int16 v11; // ax@21 | 635 // unsigned __int16 v11; // ax@21 |
636 __int16 v20; // ax@42 | 636 __int16 v20; // ax@42 |
637 int v25; // eax@45 | 637 int v25; // eax@45 |
638 signed int v26; // ecx@50 | 638 signed int v26; // ecx@50 |
639 int v28; // eax@54 | 639 int v28; // eax@54 |
640 signed int v29; // ebx@57 | 640 signed int v29; // ebx@57 |
647 unsigned int v39; // edi@71 | 647 unsigned int v39; // edi@71 |
648 ODMFace *face; // edi@75 | 648 ODMFace *face; // edi@75 |
649 int v46; // ecx@82 | 649 int v46; // ecx@82 |
650 signed int v47; // ebx@85 | 650 signed int v47; // ebx@85 |
651 int v48; // edi@85 | 651 int v48; // edi@85 |
652 int v55; // eax@107 | 652 // int v55; // eax@107 |
653 unsigned int v56; // edi@107 | 653 // unsigned int v56; // edi@107 |
654 int v57; // ST10_4@107 | 654 // int v57; // ST10_4@107 |
655 unsigned int v58; // edi@107 | 655 unsigned int v58; // edi@107 |
656 unsigned int v59; // ebx@107 | 656 unsigned int v59; // ebx@107 |
657 signed int v60; // eax@107 | 657 // signed int v60; // eax@107 |
658 int v61; // eax@124 | 658 int v61; // eax@124 |
659 Vec3_int_ v62; // [sp+Ch] [bp-44h]@42 | 659 Vec3_int_ v62; // [sp+Ch] [bp-44h]@42 |
660 int v63; // [sp+18h] [bp-38h]@64 | 660 int v63; // [sp+18h] [bp-38h]@64 |
661 int v64; // [sp+1Ch] [bp-34h]@64 | 661 int v64; // [sp+1Ch] [bp-34h]@64 |
662 bool v67; // [sp+28h] [bp-28h]@10 | 662 bool v67; // [sp+28h] [bp-28h]@10 |
973 } | 973 } |
974 | 974 |
975 //----- (0047253E) -------------------------------------------------------- | 975 //----- (0047253E) -------------------------------------------------------- |
976 void UpdateObjects() | 976 void UpdateObjects() |
977 { | 977 { |
978 unsigned int v0; // ebx@0 | 978 // unsigned int v0; // ebx@0 |
979 ObjectDesc *object; // eax@5 | 979 ObjectDesc *object; // eax@5 |
980 int v5; // ecx@6 | 980 int v5; // ecx@6 |
981 __int16 v6; // cx@7 | 981 // __int16 v6; // cx@7 |
982 signed int v7; // eax@9 | 982 signed int v7; // eax@9 |
983 signed int v11; // eax@17 | 983 signed int v11; // eax@17 |
984 int v12; // edi@27 | 984 int v12; // edi@27 |
985 int v13; // eax@27 | 985 // int v13; // eax@27 |
986 int v14; // ebx@27 | 986 // int v14; // ebx@27 |
987 unsigned int v15; // ecx@27 | 987 // unsigned int v15; // ecx@27 |
988 unsigned int v16; // edx@30 | 988 // unsigned int v16; // edx@30 |
989 unsigned int v17; // edx@32 | 989 // unsigned int v17; // edx@32 |
990 int v18; // [sp+4h] [bp-10h]@27 | 990 int v18; // [sp+4h] [bp-10h]@27 |
991 int v19; // [sp+8h] [bp-Ch]@27 | 991 int v19; // [sp+8h] [bp-Ch]@27 |
992 | 992 |
993 for (uint i = 0; i < uNumSpriteObjects; ++i) | 993 for (uint i = 0; i < uNumSpriteObjects; ++i) |
994 { | 994 { |
1420 signed __int64 v10; // qtt@10 | 1420 signed __int64 v10; // qtt@10 |
1421 Vec3_int_ *v11; // esi@11 | 1421 Vec3_int_ *v11; // esi@11 |
1422 int v12; // ST14_4@11 | 1422 int v12; // ST14_4@11 |
1423 Vec3_int_ *v14; // [sp+Ch] [bp-18h]@1 | 1423 Vec3_int_ *v14; // [sp+Ch] [bp-18h]@1 |
1424 Vec3_int_ *v15; // [sp+14h] [bp-10h]@1 | 1424 Vec3_int_ *v15; // [sp+14h] [bp-10h]@1 |
1425 int v16; // [sp+18h] [bp-Ch]@2 | 1425 // int v16; // [sp+18h] [bp-Ch]@2 |
1426 int v17; // [sp+20h] [bp-4h]@10 | 1426 int v17; // [sp+20h] [bp-4h]@10 |
1427 int a4b; // [sp+30h] [bp+Ch]@2 | 1427 int a4b; // [sp+30h] [bp+Ch]@2 |
1428 int a4c; // [sp+30h] [bp+Ch]@9 | 1428 int a4c; // [sp+30h] [bp+Ch]@9 |
1429 signed int a4a; // [sp+30h] [bp+Ch]@10 | 1429 signed int a4a; // [sp+30h] [bp+Ch]@10 |
1430 | 1430 |
1554 double v24; // ST1C_8@8 | 1554 double v24; // ST1C_8@8 |
1555 int *v25; // edi@8 | 1555 int *v25; // edi@8 |
1556 int v26; // esi@8 | 1556 int v26; // esi@8 |
1557 int *v27; // edi@10 | 1557 int *v27; // edi@10 |
1558 int v28; // esi@10 | 1558 int v28; // esi@10 |
1559 int result; // eax@12 | 1559 // int result; // eax@12 |
1560 __int64 v30; // [sp+A8h] [bp-30h]@8 | 1560 __int64 v30; // [sp+A8h] [bp-30h]@8 |
1561 float v31; // [sp+B0h] [bp-28h]@6 | 1561 float v31; // [sp+B0h] [bp-28h]@6 |
1562 float v32; // [sp+B4h] [bp-24h]@6 | 1562 float v32; // [sp+B4h] [bp-24h]@6 |
1563 int v33; // [sp+B8h] [bp-20h]@6 | 1563 int v33; // [sp+B8h] [bp-20h]@6 |
1564 int v34; // [sp+BCh] [bp-1Ch]@2 | 1564 int v34; // [sp+BCh] [bp-1Ch]@2 |
1703 double v24; // ST1C_8@8 | 1703 double v24; // ST1C_8@8 |
1704 int *v25; // edi@8 | 1704 int *v25; // edi@8 |
1705 int v26; // esi@8 | 1705 int v26; // esi@8 |
1706 int *v27; // edi@10 | 1706 int *v27; // edi@10 |
1707 int v28; // esi@10 | 1707 int v28; // esi@10 |
1708 int result; // eax@12 | 1708 // int result; // eax@12 |
1709 __int64 v30; // [sp+A8h] [bp-30h]@8 | 1709 __int64 v30; // [sp+A8h] [bp-30h]@8 |
1710 float v31; // [sp+B0h] [bp-28h]@6 | 1710 float v31; // [sp+B0h] [bp-28h]@6 |
1711 float v32; // [sp+B4h] [bp-24h]@6 | 1711 float v32; // [sp+B4h] [bp-24h]@6 |
1712 int v33; // [sp+B8h] [bp-20h]@6 | 1712 int v33; // [sp+B8h] [bp-20h]@6 |
1713 int v34; // [sp+BCh] [bp-1Ch]@2 | 1713 int v34; // [sp+BCh] [bp-1Ch]@2 |
1840 double v12; // st5@8 | 1840 double v12; // st5@8 |
1841 float v13; // ST24_4@13 | 1841 float v13; // ST24_4@13 |
1842 int v14; // esi@13 | 1842 int v14; // esi@13 |
1843 char *v15; // esi@15 | 1843 char *v15; // esi@15 |
1844 //signed int v16; // eax@16 | 1844 //signed int v16; // eax@16 |
1845 __int16 v17; // fps@16 | 1845 // __int16 v17; // fps@16 |
1846 unsigned __int8 v18; // c2@16 | 1846 // unsigned __int8 v18; // c2@16 |
1847 unsigned __int8 v19; // c3@16 | 1847 // unsigned __int8 v19; // c3@16 |
1848 double v20; // st6@16 | 1848 double v20; // st6@16 |
1849 float v21; // ST18_4@17 | 1849 float v21; // ST18_4@17 |
1850 float v22; // ST2C_4@17 | 1850 float v22; // ST2C_4@17 |
1851 float v23; // ST34_4@17 | 1851 float v23; // ST34_4@17 |
1852 float v24; // ST24_4@17 | 1852 float v24; // ST24_4@17 |
2139 int Polygon::_479295() | 2139 int Polygon::_479295() |
2140 { | 2140 { |
2141 int v3; // ecx@4 | 2141 int v3; // ecx@4 |
2142 int v4; // eax@4 | 2142 int v4; // eax@4 |
2143 int v5; // edx@4 | 2143 int v5; // edx@4 |
2144 int v6; // ST14_4@5 | 2144 // int v6; // ST14_4@5 |
2145 Vec3_int_ thisa; // [sp+Ch] [bp-10h]@8 | 2145 Vec3_int_ thisa; // [sp+Ch] [bp-10h]@8 |
2146 int v11; // [sp+18h] [bp-4h]@4 | 2146 int v11; // [sp+18h] [bp-4h]@4 |
2147 | 2147 |
2148 if ( !this->pODMFace->pFacePlane.vNormal.z ) | 2148 if ( !this->pODMFace->pFacePlane.vNormal.z ) |
2149 { | 2149 { |
2885 //double v16; // ST0C_8@44 | 2885 //double v16; // ST0C_8@44 |
2886 //double v17; // ST0C_8@44 | 2886 //double v17; // ST0C_8@44 |
2887 int v18; // ST14_4@44 | 2887 int v18; // ST14_4@44 |
2888 //double v19; // ST0C_8@44 | 2888 //double v19; // ST0C_8@44 |
2889 signed int v20; // [sp+10h] [bp-4h]@10 | 2889 signed int v20; // [sp+10h] [bp-4h]@10 |
2890 float a3a; // [sp+1Ch] [bp+8h]@33 | 2890 // float a3a; // [sp+1Ch] [bp+8h]@33 |
2891 //float a3b; // [sp+1Ch] [bp+8h]@34 | 2891 //float a3b; // [sp+1Ch] [bp+8h]@34 |
2892 float a3c; // [sp+1Ch] [bp+8h]@44 | 2892 float a3c; // [sp+1Ch] [bp+8h]@44 |
2893 //float a3d; // [sp+1Ch] [bp+8h]@44 | 2893 //float a3d; // [sp+1Ch] [bp+8h]@44 |
2894 //float a4b; // [sp+20h] [bp+Ch]@18 | 2894 //float a4b; // [sp+20h] [bp+Ch]@18 |
2895 //int a4a; // [sp+20h] [bp+Ch]@33 | 2895 //int a4a; // [sp+20h] [bp+Ch]@33 |
3120 } | 3120 } |
3121 | 3121 |
3122 //----- (0048257A) -------------------------------------------------------- | 3122 //----- (0048257A) -------------------------------------------------------- |
3123 int __fastcall GetTerrainHeightsAroundParty2(int a1, int a2, int *pIsOnWater, int bFloatAboveWater) | 3123 int __fastcall GetTerrainHeightsAroundParty2(int a1, int a2, int *pIsOnWater, int bFloatAboveWater) |
3124 { | 3124 { |
3125 int result; // eax@9 | 3125 // int result; // eax@9 |
3126 int v8; // ebx@11 | 3126 int v8; // ebx@11 |
3127 int v9; // eax@11 | 3127 int v9; // eax@11 |
3128 int v10; // ecx@11 | 3128 int v10; // ecx@11 |
3129 int v13; // [sp+10h] [bp-8h]@11 | 3129 int v13; // [sp+10h] [bp-8h]@11 |
3130 signed int v14; // [sp+14h] [bp-4h]@3 | 3130 signed int v14; // [sp+14h] [bp-4h]@3 |
3323 //----- (00441A4E) -------------------------------------------------------- | 3323 //----- (00441A4E) -------------------------------------------------------- |
3324 __int16 __fastcall sub_441A4E(int a1)//for blessing | 3324 __int16 __fastcall sub_441A4E(int a1)//for blessing |
3325 { | 3325 { |
3326 __int16 result; // ax@1 | 3326 __int16 result; // ax@1 |
3327 int v2; // ebx@1 | 3327 int v2; // ebx@1 |
3328 char *v3; // esi@1 | 3328 // char *v3; // esi@1 |
3329 int v4; // edi@4 | 3329 // int v4; // edi@4 |
3330 bool v5; // ecx@4 | 3330 bool v5; // ecx@4 |
3331 SpriteFrame *pFrame; // eax@6 | 3331 SpriteFrame *pFrame; // eax@6 |
3332 //SpriteFrame *v7; // edi@6 | 3332 //SpriteFrame *v7; // edi@6 |
3333 int v8; // eax@6 | 3333 int v8; // eax@6 |
3334 unsigned __int16 v9; // ax@6 | 3334 // unsigned __int16 v9; // ax@6 |
3335 RenderBillboardTransform_local0 v10; // [sp+Ch] [bp-5Ch]@1 | 3335 RenderBillboardTransform_local0 v10; // [sp+Ch] [bp-5Ch]@1 |
3336 int v11; // [sp+5Ch] [bp-Ch]@6 | 3336 int v11; // [sp+5Ch] [bp-Ch]@6 |
3337 int v12; // [sp+60h] [bp-8h]@1 | 3337 int v12; // [sp+60h] [bp-8h]@1 |
3338 //int v13; // [sp+64h] [bp-4h]@6 | 3338 //int v13; // [sp+64h] [bp-4h]@6 |
3339 | 3339 |
3628 | 3628 |
3629 //----- (00443E31) -------------------------------------------------------- | 3629 //----- (00443E31) -------------------------------------------------------- |
3630 void LoadLevel_InitializeLevelStr() | 3630 void LoadLevel_InitializeLevelStr() |
3631 { | 3631 { |
3632 | 3632 |
3633 char Args[100]; | 3633 // char Args[100]; |
3634 int string_num; | 3634 int string_num; |
3635 int max_string_length; | 3635 int max_string_length; |
3636 int current_string_length; | 3636 // int current_string_length; |
3637 int prev_string_offset; | 3637 int prev_string_offset; |
3638 | 3638 |
3639 if (sizeof(pLevelStrOffsets) != 2000) | 3639 if (sizeof(pLevelStrOffsets) != 2000) |
3640 Log::Warning(L"pLevelStrOffsets: deserialization warning"); | 3640 Log::Warning(L"pLevelStrOffsets: deserialization warning"); |
3641 memset(pLevelStrOffsets.data(), 0, 2000); | 3641 memset(pLevelStrOffsets.data(), 0, 2000); |
3688 } | 3688 } |
3689 | 3689 |
3690 //----- (00443FDC) -------------------------------------------------------- | 3690 //----- (00443FDC) -------------------------------------------------------- |
3691 void OnMapLoad() | 3691 void OnMapLoad() |
3692 { | 3692 { |
3693 __int16 v4; // cx@9 | 3693 // __int16 v4; // cx@9 |
3694 int v6; // eax@9 | 3694 int v6; // eax@9 |
3695 unsigned __int64 v8; // qax@26 | 3695 unsigned __int64 v8; // qax@26 |
3696 unsigned int v9; // ecx@26 | 3696 // unsigned int v9; // ecx@26 |
3697 unsigned __int64 v10; // qax@26 | 3697 unsigned __int64 v10; // qax@26 |
3698 unsigned __int64 v11; // qax@26 | 3698 unsigned __int64 v11; // qax@26 |
3699 unsigned __int64 v13; // qax@26 | 3699 unsigned __int64 v13; // qax@26 |
3700 unsigned __int64 v14; // qax@26 | 3700 unsigned __int64 v14; // qax@26 |
3701 int v15; // ST58_4@26 | 3701 // int v15; // ST58_4@26 |
3702 unsigned __int64 v16; // qax@26 | 3702 unsigned __int64 v16; // qax@26 |
3703 int hours; // ebx@26 | 3703 int hours; // ebx@26 |
3704 unsigned __int64 v18; // [sp+Ch] [bp-44h]@12 | 3704 unsigned __int64 v18; // [sp+Ch] [bp-44h]@12 |
3705 unsigned int seconds; // [sp+14h] [bp-3Ch]@26 | 3705 unsigned int seconds; // [sp+14h] [bp-3Ch]@26 |
3706 unsigned __int64 v20; // [sp+1Ch] [bp-34h]@7 | 3706 unsigned __int64 v20; // [sp+1Ch] [bp-34h]@7 |
3708 unsigned int years; // [sp+34h] [bp-1Ch]@26 | 3708 unsigned int years; // [sp+34h] [bp-1Ch]@26 |
3709 unsigned int weeks; // [sp+38h] [bp-18h]@26 | 3709 unsigned int weeks; // [sp+38h] [bp-18h]@26 |
3710 int v26; // [sp+3Ch] [bp-14h]@15 | 3710 int v26; // [sp+3Ch] [bp-14h]@15 |
3711 unsigned int days; // [sp+3Ch] [bp-14h]@26 | 3711 unsigned int days; // [sp+3Ch] [bp-14h]@26 |
3712 unsigned int months; // [sp+40h] [bp-10h]@26 | 3712 unsigned int months; // [sp+40h] [bp-10h]@26 |
3713 __int16 v29; // [sp+46h] [bp-Ah]@9 | 3713 // __int16 v29; // [sp+46h] [bp-Ah]@9 |
3714 __int16 v30; // [sp+48h] [bp-8h]@9 | 3714 // __int16 v30; // [sp+48h] [bp-8h]@9 |
3715 __int16 v32; // [sp+4Ch] [bp-4h]@9 | 3715 // __int16 v32; // [sp+4Ch] [bp-4h]@9 |
3716 __int16 v33; // [sp+4Eh] [bp-2h]@9 | 3716 // __int16 v33; // [sp+4Eh] [bp-2h]@9 |
3717 | 3717 |
3718 for (uint i = 0; i < uLevelEVT_NumEvents; ++i) | 3718 for (uint i = 0; i < uLevelEVT_NumEvents; ++i) |
3719 { | 3719 { |
3720 EventIndex pEvent = pLevelEVT_Index[i]; | 3720 EventIndex pEvent = pLevelEVT_Index[i]; |
3721 | 3721 |