Mercurial > mm7
comparison Chest.cpp @ 600:db4a23580e6c
Chest item view fixed, gold can be taken
author | Gloval |
---|---|
date | Thu, 07 Mar 2013 00:35:10 +0400 |
parents | 96f48cfdd657 |
children | 5bf285f56fa8 |
comparison
equal
deleted
inserted
replaced
599:deb559e4fe47 | 600:db4a23580e6c |
---|---|
300 v12 = itemPixelWidth - 14; | 300 v12 = itemPixelWidth - 14; |
301 v12 = v12 & 0xFFFFFFE0; | 301 v12 = v12 & 0xFFFFFFE0; |
302 v13 = v12 + 32; | 302 v13 = v12 + 32; |
303 if ( itemPixelHeght < 14 ) | 303 if ( itemPixelHeght < 14 ) |
304 itemPixelHeght = 14; | 304 itemPixelHeght = 14; |
305 itemPixelPosX = chest_offs_x + 32 * (item_counter % chestWidthCells) + ((v13 - itemPixelWidth) >> 1); | 305 itemPixelPosX = chest_offs_x + 32 * (item_counter % chestWidthCells) + ((signed int)(v13 - itemPixelWidth)/2); |
306 itemPixelPosY = chest_offs_y + 32 * (item_counter / chestHeghtCells) + | 306 itemPixelPosY = chest_offs_y + 32 * (item_counter / chestHeghtCells) + |
307 ((((itemPixelHeght - 14) & 0xFFFFFFE0) - item_texture->uTextureHeight + 32) >> 1); | 307 ((signed int)(((itemPixelHeght - 14) & 0xFFFFFFE0) + 32- item_texture->uTextureHeight ) /2); |
308 pRenderer->DrawTextureTransparent( itemPixelPosX, itemPixelPosY, item_texture); | 308 pRenderer->DrawTextureTransparent( itemPixelPosX, itemPixelPosY, item_texture); |
309 sub_40F92A(&v16[itemPixelPosX + pSRZBufferLineOffsets[itemPixelPosY]], item_texture, item_counter + 1); | 309 sub_40F92A(&v16[itemPixelPosX + pSRZBufferLineOffsets[itemPixelPosY]], item_texture, item_counter + 1); |
310 } | 310 } |
311 } | 311 } |
312 pRenderer->DrawTextureIndexed(pBtn_ExitCancel->uX, pBtn_ExitCancel->uY, | 312 pRenderer->DrawTextureIndexed(pBtn_ExitCancel->uX, pBtn_ExitCancel->uY, |