Mercurial > mm7
changeset 264:fb890fb66cad
^Pi[%s]%s
author | Ritor1 |
---|---|
date | Mon, 18 Feb 2013 12:51:51 +0600 |
parents | 8cf4fe6b4941 |
children | 006188b68143 b34b53ee874d |
files | GUIWindow.cpp MM7.vcxproj.filters mm7_1.cpp mm7_4.cpp mm7_5.cpp |
diffstat | 5 files changed, 7 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/GUIWindow.cpp Mon Feb 18 12:38:38 2013 +0600 +++ b/GUIWindow.cpp Mon Feb 18 12:51:51 2013 +0600 @@ -221,7 +221,7 @@ pRenderer->DrawTextureTransparent(uFrameX + 24, uFrameY + 24, v13); v16 = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0xFFu, 0xFFu, 0x9Bu); sprintf(pTmpBuf, "\xC%05d", v16); - sprintf(pTmpBuf2, pGlobalTXT_LocalizationStrings[429], pPlayer->pName, pClassNames[pPlayer->classType]); + sprintfex(pTmpBuf2, pGlobalTXT_LocalizationStrings[429], pPlayer->pName, pClassNames[pPlayer->classType]); strcat(pTmpBuf, pTmpBuf2); strcat(pTmpBuf, "\xC" "00000\n"); v20 = UI_GetHealthManaStringColor(pPlayer->sHealth, pPlayer->GetMaxHealth()); @@ -1155,7 +1155,7 @@ } else { - sprintf( pTmpBuf, pGlobalTXT_LocalizationStrings[429], + sprintfex( pTmpBuf, pGlobalTXT_LocalizationStrings[429], //p2DEvents_minus1_::08[13 * (unsigned int)ptr_507BC0->ptr_1C], p2DEvents[(unsigned int)ptr_507BC0->ptr_1C - 1].pProprieterName, //p2DEvents_minus1__10[13 * (unsigned int)ptr_507BC0->ptr_1C]);
--- a/MM7.vcxproj.filters Mon Feb 18 12:38:38 2013 +0600 +++ b/MM7.vcxproj.filters Mon Feb 18 12:51:51 2013 +0600 @@ -320,6 +320,7 @@ <ClCompile Include="StorylineTextTable.cpp" /> <ClCompile Include="texts.cpp" /> <ClCompile Include="mm7text_ru.cpp" /> + <ClCompile Include="NPC.cpp" /> </ItemGroup> <ItemGroup> <ResourceCompile Include="Might and Magic Trilogy.rc" />
--- a/mm7_1.cpp Mon Feb 18 12:38:38 2013 +0600 +++ b/mm7_1.cpp Mon Feb 18 12:51:51 2013 +0600 @@ -3154,7 +3154,7 @@ v37 = v112[6]; if ( v37 ) { - sprintf(pTmpBuf, pGlobalTXT_LocalizationStrings[429], *v112, aNPCProfessionNames[(signed int)v37]); + sprintfex(pTmpBuf, pGlobalTXT_LocalizationStrings[429], *v112, aNPCProfessionNames[(signed int)v37]); } else {
--- a/mm7_4.cpp Mon Feb 18 12:38:38 2013 +0600 +++ b/mm7_4.cpp Mon Feb 18 12:51:51 2013 +0600 @@ -10136,7 +10136,7 @@ v7 = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0x15u, 0x99u, 0xE9u); v8 = v6->uProfession; if ( v8 ) - sprintf(pTmpBuf, pGlobalTXT_LocalizationStrings[429], v6->pName, aNPCProfessionNames[v8]); + sprintfex(pTmpBuf, pGlobalTXT_LocalizationStrings[429], v6->pName, aNPCProfessionNames[v8]); else strcpy(pTmpBuf, v6->pName); a1.DrawTitleText(pFontCreate, 0x1E3u, 0x71u, v7, pTmpBuf, 3u);
--- a/mm7_5.cpp Mon Feb 18 12:38:38 2013 +0600 +++ b/mm7_5.cpp Mon Feb 18 12:51:51 2013 +0600 @@ -3505,7 +3505,7 @@ goto _sprintex_2args_draw_status_and_continue; case UIMSG_ShowStatus_Player: pPlayer5 = pPlayers[uMessageParam]; - sprintf(pTmpBuf, pGlobalTXT_LocalizationStrings[429], pPlayer5->pName, pClassNames[pPlayer5->classType]);// "%s the %s" + sprintfex(pTmpBuf, pGlobalTXT_LocalizationStrings[429], pPlayer5->pName, pClassNames[pPlayer5->classType]);// "%s the %s" strcat(pTmpBuf, ": "); v107 = pPlayer5->GetMajorConditionIdx(); strcat(pTmpBuf, aCharacterConditionNames[v107]); @@ -16096,7 +16096,7 @@ { v10 = v6->pName; v11 = pTmpBuf; - sprintf(pTmpBuf, pGlobalTXT_LocalizationStrings[429], v10, aNPCProfessionNames[v9]); + sprintfex(pTmpBuf, pGlobalTXT_LocalizationStrings[429], v10, aNPCProfessionNames[v9]); } else {