Mercurial > mm7
diff mm7_5.cpp @ 357:b07cf89108d5
Spell positions in book
author | Gloval |
---|---|
date | Thu, 21 Feb 2013 14:26:00 +0400 |
parents | 37b19ff5addd |
children | 57d81602e72c |
line wrap: on
line diff
--- a/mm7_5.cpp Thu Feb 21 10:07:51 2013 +0600 +++ b/mm7_5.cpp Thu Feb 21 14:26:00 2013 +0400 @@ -13668,15 +13668,15 @@ } if ( v6->pLevelOfDetail0 ) { - v7 = 2 * (12 * v0->lastOpenedSpellbookPage + pSpellbookSpellIndices[v0->lastOpenedSpellbookPage][v4]); - v19 = pViewport->uViewportY + dword_4E20D0[v7 + 1]; - v17 = pViewport->uViewportX + dword_4E20D0[v7]; + v7 = (12 * v0->lastOpenedSpellbookPage + pSpellbookSpellIndices[v0->lastOpenedSpellbookPage][v4]); + v19 = pViewport->uViewportY + pIconPos[v7].Ypos; + v17 = pViewport->uViewportX + pIconPos[v7].Xpos; if ( BYTE1(v6->pBits) & 2 ) pRenderer->DrawTextureTransparent(v17, v19, v6); else pRenderer->DrawTextureIndexed(v17, v19, v6); - v8 = 2 * (12 * v0->lastOpenedSpellbookPage + pSpellbookSpellIndices[v0->lastOpenedSpellbookPage][v4]); - pRenderer->_4A612A(dword_4E20D0[v8], dword_4E20D0[v8 + 1], v23, v4); + v8 = (12 * v0->lastOpenedSpellbookPage + pSpellbookSpellIndices[v0->lastOpenedSpellbookPage][v4]); + pRenderer->_4A612A(pIconPos[v8].Xpos,pIconPos[v8].Ypos, v23, v4); } } } @@ -13692,9 +13692,9 @@ if ( v11->pLevelOfDetail0 ) { v21 = dword_5063D8[v10]; - v12 = 2 * (12 * v0->lastOpenedSpellbookPage + pSpellbookSpellIndices[v0->lastOpenedSpellbookPage][v10]); - v20 = pViewport->uViewportY + dword_4E20D0[v12 + 1]; - v18 = pViewport->uViewportX + dword_4E20D0[v12]; + v12 = (12 * v0->lastOpenedSpellbookPage + pSpellbookSpellIndices[v0->lastOpenedSpellbookPage][v10]); + v20 = pViewport->uViewportY + pIconPos[v12].Ypos; + v18 = pViewport->uViewportX + pIconPos[v12].Xpos; if ( BYTE1(v11->pBits) & 2 ) pRenderer->DrawTextureTransparent(v18, v20, v21); else