Mercurial > mm7
comparison Chest.cpp @ 1980:c1c74df0a33e
changing most of auto types to their actual types
author | Grumpy7 |
---|---|
date | Wed, 30 Oct 2013 00:47:37 -0700 |
parents | 35c1e4ff6ba7 |
children | 37f42cfc881d |
comparison
equal
deleted
inserted
replaced
1979:92dfa0cafbe3 | 1980:c1c74df0a33e |
---|---|
65 SpriteObject pSpellObject; // [sp+14h] [bp-B0h]@28 | 65 SpriteObject pSpellObject; // [sp+14h] [bp-B0h]@28 |
66 | 66 |
67 assert( uChestID < 20 ); | 67 assert( uChestID < 20 ); |
68 if ( ( uChestID < 0 ) && ( uChestID >= 20 ) ) | 68 if ( ( uChestID < 0 ) && ( uChestID >= 20 ) ) |
69 return false; | 69 return false; |
70 auto chest = &pChests[uChestID]; | 70 Chest* chest = &pChests[uChestID]; |
71 | 71 |
72 ++pIcons_LOD->uTexturePacksCount; | 72 ++pIcons_LOD->uTexturePacksCount; |
73 if (!pIcons_LOD->uNumPrevLoadedFiles) | 73 if (!pIcons_LOD->uNumPrevLoadedFiles) |
74 pIcons_LOD->uNumPrevLoadedFiles = pIcons_LOD->uNumLoadedFiles; | 74 pIcons_LOD->uNumPrevLoadedFiles = pIcons_LOD->uNumLoadedFiles; |
75 | 75 |
210 { | 210 { |
211 v0 = pMouse->GetCursorPos(&a2); | 211 v0 = pMouse->GetCursorPos(&a2); |
212 v1 = pRenderer->pActiveZBuffer[v0->x + pSRZBufferLineOffsets[pMouse->GetCursorPos(&v3)->y]]; | 212 v1 = pRenderer->pActiveZBuffer[v0->x + pSRZBufferLineOffsets[pMouse->GetCursorPos(&v3)->y]]; |
213 if ( v1 ) | 213 if ( v1 ) |
214 { | 214 { |
215 auto _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)); |