diff Chest.cpp @ 2010:37f42cfc881d

m
author Ritor1
date Sun, 10 Nov 2013 21:13:29 +0600
parents c1c74df0a33e
children 4c3e8ec07d12
line wrap: on
line diff
--- a/Chest.cpp	Sat Nov 09 00:15:18 2013 +0600
+++ b/Chest.cpp	Sun Nov 10 21:13:29 2013 +0600
@@ -199,17 +199,17 @@
 //----- (0042038D) --------------------------------------------------------
 void  ChestUI_WritePointedObjectStatusString()
 {
-  POINT *v0; // esi@2
+  //POINT *v0; // esi@2
   int v1; // ecx@2
-  const char *v2; // eax@3
-  POINT v3; // [sp+0h] [bp-10h]@2
-  POINT a2; // [sp+8h] [bp-8h]@1
+  //const char *v2; // eax@3
+  //POINT v3; // [sp+0h] [bp-10h]@2
+  POINT cursor; // [sp+8h] [bp-8h]@1
 
   __debugbreak(); // invalid indexing
-  if ( pMouse->GetCursorPos(&a2)->y < 350 )
+  pMouse->GetCursorPos(&cursor);
+  if ( cursor.y < 350 )
   {
-    v0 = pMouse->GetCursorPos(&a2);
-    v1 = pRenderer->pActiveZBuffer[v0->x + pSRZBufferLineOffsets[pMouse->GetCursorPos(&v3)->y]];
+    v1 = pRenderer->pActiveZBuffer[cursor.x + pSRZBufferLineOffsets[cursor.y]];
     if ( v1 )
     {
       ItemGen* _w = (ItemGen *)(&pOtherOverlayList->pOverlays[49].field_4 + 2662 * (unsigned int)pChestWindow->ptr_1C
@@ -218,8 +218,8 @@
 
       _w = (ItemGen *)(&pChests[(unsigned int)pChestWindow->ptr_1C] -32 
 		  + 18 * *((short *)&pChests[(unsigned int)pChestWindow->ptr_1C].igChestItems[139].uExpireTime + v1 + 3));
-      v2 = _w->GetDisplayName();
-      GameUI_SetFooterString(v2);
+      //v2 = _w->GetDisplayName();
+      GameUI_SetFooterString(_w->GetDisplayName());
     }
   }
 }