Mercurial > mm7
changeset 375:c606cabd7cbf
Merge
author | Gloval |
---|---|
date | Fri, 22 Feb 2013 08:23:15 +0400 |
parents | f0f66f690777 (current diff) 85edec9da96b (diff) |
children | 615e6b6f55c2 |
files | Items.cpp |
diffstat | 5 files changed, 9 insertions(+), 11 deletions(-) [+] |
line wrap: on
line diff
--- a/GUIWindow.cpp Fri Feb 22 08:20:59 2013 +0400 +++ b/GUIWindow.cpp Fri Feb 22 08:23:15 2013 +0400 @@ -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 08:20:59 2013 +0400 +++ b/Items.cpp Fri Feb 22 08:23:15 2013 +0400 @@ -1410,13 +1410,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 08:20:59 2013 +0400 +++ b/mm7_2.cpp Fri Feb 22 08:23:15 2013 +0400 @@ -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 08:20:59 2013 +0400 +++ b/mm7_data.h Fri Feb 22 08:23:15 2013 +0400 @@ -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);