Mercurial > mm7
comparison Chest.cpp @ 2010:37f42cfc881d
m
author | Ritor1 |
---|---|
date | Sun, 10 Nov 2013 21:13:29 +0600 |
parents | c1c74df0a33e |
children | 4c3e8ec07d12 |
comparison
equal
deleted
inserted
replaced
2008:591024ad7269 | 2010:37f42cfc881d |
---|---|
197 | 197 |
198 | 198 |
199 //----- (0042038D) -------------------------------------------------------- | 199 //----- (0042038D) -------------------------------------------------------- |
200 void ChestUI_WritePointedObjectStatusString() | 200 void ChestUI_WritePointedObjectStatusString() |
201 { | 201 { |
202 POINT *v0; // esi@2 | 202 //POINT *v0; // esi@2 |
203 int v1; // ecx@2 | 203 int v1; // ecx@2 |
204 const char *v2; // eax@3 | 204 //const char *v2; // eax@3 |
205 POINT v3; // [sp+0h] [bp-10h]@2 | 205 //POINT v3; // [sp+0h] [bp-10h]@2 |
206 POINT a2; // [sp+8h] [bp-8h]@1 | 206 POINT cursor; // [sp+8h] [bp-8h]@1 |
207 | 207 |
208 __debugbreak(); // invalid indexing | 208 __debugbreak(); // invalid indexing |
209 if ( pMouse->GetCursorPos(&a2)->y < 350 ) | 209 pMouse->GetCursorPos(&cursor); |
210 { | 210 if ( cursor.y < 350 ) |
211 v0 = pMouse->GetCursorPos(&a2); | 211 { |
212 v1 = pRenderer->pActiveZBuffer[v0->x + pSRZBufferLineOffsets[pMouse->GetCursorPos(&v3)->y]]; | 212 v1 = pRenderer->pActiveZBuffer[cursor.x + pSRZBufferLineOffsets[cursor.y]]; |
213 if ( v1 ) | 213 if ( v1 ) |
214 { | 214 { |
215 ItemGen* _w = (ItemGen *)(&pOtherOverlayList->pOverlays[49].field_4 + 2662 * (unsigned int)pChestWindow->ptr_1C | 215 ItemGen* _w = (ItemGen *)(&pOtherOverlayList->pOverlays[49].field_4 + 2662 * (unsigned int)pChestWindow->ptr_1C |
216 + 18 * *((short *)&pChests[0].igChestItems[139].uExpireTime | 216 + 18 * *((short *)&pChests[0].igChestItems[139].uExpireTime |
217 + v1 + 2662 * (unsigned int)pChestWindow->ptr_1C + 3)); | 217 + v1 + 2662 * (unsigned int)pChestWindow->ptr_1C + 3)); |
218 | 218 |
219 _w = (ItemGen *)(&pChests[(unsigned int)pChestWindow->ptr_1C] -32 | 219 _w = (ItemGen *)(&pChests[(unsigned int)pChestWindow->ptr_1C] -32 |
220 + 18 * *((short *)&pChests[(unsigned int)pChestWindow->ptr_1C].igChestItems[139].uExpireTime + v1 + 3)); | 220 + 18 * *((short *)&pChests[(unsigned int)pChestWindow->ptr_1C].igChestItems[139].uExpireTime + v1 + 3)); |
221 v2 = _w->GetDisplayName(); | 221 //v2 = _w->GetDisplayName(); |
222 GameUI_SetFooterString(v2); | 222 GameUI_SetFooterString(_w->GetDisplayName()); |
223 } | 223 } |
224 } | 224 } |
225 } | 225 } |
226 | 226 |
227 //----- (0042092D) -------------------------------------------------------- | 227 //----- (0042092D) -------------------------------------------------------- |