Mercurial > mm7
changeset 366:85edec9da96b
_4B910F_shop_interaction
author | Nomad |
---|---|
date | Fri, 22 Feb 2013 01:36:54 +0200 |
parents | 0f35f908547f |
children | df09db095ef1 7f817679b60e c606cabd7cbf |
files | GUIWindow.cpp Items.cpp mm7_2.cpp mm7_data.h mm7text_ru.cpp |
diffstat | 5 files changed, 9 insertions(+), 11 deletions(-) [+] |
line wrap: on
line diff
--- a/GUIWindow.cpp Fri Feb 22 01:20:30 2013 +0400 +++ b/GUIWindow.cpp Fri Feb 22 01:36:54 2013 +0200 @@ -1171,7 +1171,7 @@ sub_4B6478(); break; case 1: - sub_4B910F(); + _4B910F_shop_interaction(); break; case 2: sub_4BA928(); @@ -1233,14 +1233,14 @@ LABEL_58: if ( array_5913D8[6] == (NPCData *)uNumDialogueNPCPortraits && uHouse_ExitPic ) { - pRenderer->DrawTextureIndexed(0x22Cu, 0x1C3u, (Texture *)(uTextureID_x_x_u != -1 ? (int)&pIcons_LOD->pTextures[uTextureID_x_x_u] : 0)); + pRenderer->DrawTextureIndexed(0x22Cu, 0x1C3u, (Texture *)(uTextureID_x_x_u != -1 ? &pIcons_LOD->pTextures[uTextureID_x_x_u] : 0)); v16 = (Texture *)(uTextureID_x_ok_u != -1 ? (int)&pIcons_LOD->pTextures[uTextureID_x_ok_u] : 0); v14 = 451; v12 = 476; } else { - v16 = (Texture *)(uTextureID_506438 != -1 ? (int)&pIcons_LOD->pTextures[uTextureID_506438] : 0); + v16 = (Texture *)(uTextureID_506438 != -1 ? &pIcons_LOD->pTextures[uTextureID_506438] : 0); v14 = 445; v12 = 471; }
--- a/Items.cpp Fri Feb 22 01:20:30 2013 +0400 +++ b/Items.cpp Fri Feb 22 01:36:54 2013 +0200 @@ -1417,13 +1417,10 @@ //----- (00456499) -------------------------------------------------------- const char *ItemGen::GetDisplayName() { - const char *result; // eax@2 - - if ( this->uAttributes & ITEM_IDENTIFIED ) - result = GetIdentifiedName(); + if (Identified()) + return GetIdentifiedName(); else - result = pItemsTable->pItems[uItemID].pUnidentifiedName; - return result; + return pItemsTable->pItems[uItemID].pUnidentifiedName; } //----- (004564B3) --------------------------------------------------------
--- a/mm7_2.cpp Fri Feb 22 01:20:30 2013 +0400 +++ b/mm7_2.cpp Fri Feb 22 01:36:54 2013 +0200 @@ -1005,7 +1005,7 @@ //----- (004B910F) -------------------------------------------------------- -char *__cdecl sub_4B910F() +char *__cdecl _4B910F_shop_interaction() { Player *v0; // ebx@1 char *result; // eax@6
--- a/mm7_data.h Fri Feb 22 01:20:30 2013 +0400 +++ b/mm7_data.h Fri Feb 22 01:36:54 2013 +0200 @@ -2333,7 +2333,7 @@ void __cdecl sub_4B8285_prolly_draw_arcomage_result(); void *__cdecl GenerateShopItems(); void *__cdecl sub_4B8F94(); -char *__cdecl sub_4B910F(); +char *__cdecl _4B910F_shop_interaction(); POINT *__cdecl sub_4B9CC6(); void __cdecl sub_4BA928(); signed int __fastcall sub_4BB756(signed int a1);