comparison mm7_4.cpp @ 249:9a8d37c07e50

.
author Nomad
date Mon, 18 Feb 2013 07:13:20 +0200
parents 37dcbe8f3cca
children 83f85ab6079a
comparison
equal deleted inserted replaced
248:37dcbe8f3cca 249:9a8d37c07e50
4890 stru351 v56; // [sp+80h] [bp-B8h]@107 4890 stru351 v56; // [sp+80h] [bp-B8h]@107
4891 stru351 v57; // [sp+9Ch] [bp-9Ch]@115 4891 stru351 v57; // [sp+9Ch] [bp-9Ch]@115
4892 char a1[100]; // [sp+B8h] [bp-80h]@3 4892 char a1[100]; // [sp+B8h] [bp-80h]@3
4893 unsigned int v59; // [sp+11Ch] [bp-1Ch]@3 4893 unsigned int v59; // [sp+11Ch] [bp-1Ch]@3
4894 size_t v60; // [sp+120h] [bp-18h]@3 4894 size_t v60; // [sp+120h] [bp-18h]@3
4895 Player *v61; // [sp+124h] [bp-14h]@3 4895 //Player *v61; // [sp+124h] [bp-14h]@3
4896 char *Str; // [sp+128h] [bp-10h]@1 4896 //char *Str; // [sp+128h] [bp-10h]@1
4897 int v63; // [sp+12Ch] [bp-Ch]@32 4897 int v63; // [sp+12Ch] [bp-Ch]@32
4898 int v64; // [sp+130h] [bp-8h]@6 4898 int v64; // [sp+130h] [bp-8h]@6
4899 NPCData *v65; // [sp+134h] [bp-4h]@6 4899 NPCData *v65; // [sp+134h] [bp-4h]@6
4900 4900
4901 v6 = uPlayerID; 4901 v6 = uPlayerID;
4902 Str = lpsz; 4902 //Str = lpsz;
4903 if ( IsBadStringPtrA(lpsz, 1u) ) 4903 if ( IsBadStringPtrA(lpsz, 1u) )
4904 return "Invalid String Passed"; 4904 return "Invalid String Passed";
4905 v60 = strlen(Str); 4905 v60 = strlen(lpsz);
4906 a1[0] = 0; 4906 a1[0] = 0;
4907 pPlayer = &pParty->pPlayers[v6]; 4907 pPlayer = &pParty->pPlayers[v6];
4908 v59 = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(255, 255, 155); 4908 v59 = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(255, 255, 155);
4909 v61 = pPlayer; 4909 //v61 = pPlayer;
4910 memset(pTmpBuf2, 0, 0x7D0u); 4910 memset(pTmpBuf2, 0, 0x7D0u);
4911 if ( dword_5C35D4 ) 4911 if ( dword_5C35D4 )
4912 { 4912 {
4913 __debugbreak(); // fix 4913 __debugbreak(); // fix
4914 v9 = array_5913D8[(unsigned int)((char *)array_5913D8[6] + -(dword_591080 != 0) - 1)]; 4914 v9 = array_5913D8[(unsigned int)((char *)array_5913D8[6] + -(dword_591080 != 0) - 1)];
4923 v11 = a4; 4923 v11 = a4;
4924 v12 = v64; 4924 v12 = v64;
4925 v13 = a3; 4925 v13 = a3;
4926 while ( 1 ) 4926 while ( 1 )
4927 { 4927 {
4928 v14 = Str[v12]; 4928 v14 = lpsz[v12];
4929 if ( v14 == 37 ) 4929 if ( v14 == 37 )
4930 break; 4930 break;
4931 pTmpBuf2[v10++] = v14; 4931 pTmpBuf2[v10++] = v14;
4932 LABEL_119: 4932 LABEL_119:
4933 ++v12; 4933 ++v12;
4934 v64 = v12; 4934 v64 = v12;
4935 if ( v12 >= (signed int)v60 ) 4935 if ( v12 >= (signed int)v60 )
4936 return pTmpBuf2; 4936 return pTmpBuf2;
4937 } 4937 }
4938 v15 = &Str[v12 + 1]; 4938 v15 = &lpsz[v12 + 1];
4939 v16 = (unsigned __int8)Str[v12 + 2]; 4939 v16 = (unsigned __int8)lpsz[v12 + 2];
4940 v17 = v16 + 10 * (unsigned __int8)*v15 - 528; 4940 v17 = v16 + 10 * (unsigned __int8)*v15 - 528;
4941 if ( v17 <= 15 ) 4941 if ( v17 <= 15 )
4942 { 4942 {
4943 if ( v17 != 15 ) 4943 if ( v17 != 15 )
4944 { 4944 {
4985 v11 = pGlobalTXT_LocalizationStrings[386];// "Sir" 4985 v11 = pGlobalTXT_LocalizationStrings[386];// "Sir"
4986 goto LABEL_118; 4986 goto LABEL_118;
4987 case 0x218: 4987 case 0x218:
4988 v19 = 0; 4988 v19 = 0;
4989 v63 = 0; 4989 v63 = 0;
4990 v20 = (unsigned __int8 *)v61->field_152; 4990 v20 = (unsigned __int8 *)pPlayer->field_152;
4991 do 4991 do
4992 { 4992 {
4993 if ( (unsigned __int16)_449B57_test_bit(v20, word_4EE150[v19]) ) 4993 if ( (unsigned __int16)_449B57_test_bit(v20, word_4EE150[v19]) )
4994 { 4994 {
4995 v21 = v63; 4995 v21 = v63;
5013 } 5013 }
5014 else 5014 else
5015 { 5015 {
5016 v11 = (char *)pNPCTopics[55].pText; 5016 v11 = (char *)pNPCTopics[55].pText;
5017 } 5017 }
5018 pPlayer = v61; 5018 //pPlayer = v61;
5019 v13 = a3; 5019 v13 = a3;
5020 goto LABEL_118; 5020 goto LABEL_118;
5021 case 0x21A: 5021 case 0x21A:
5022 if ( pPlayer->uSex ) 5022 if ( pPlayer->uSex )
5023 LABEL_43: 5023 LABEL_43: