comparison mm7_5.cpp @ 357:b07cf89108d5

Spell positions in book
author Gloval
date Thu, 21 Feb 2013 14:26:00 +0400
parents 37b19ff5addd
children 57d81602e72c
comparison
equal deleted inserted replaced
356:b9aff98467e3 357:b07cf89108d5
13666 v23 = dword_506408[v4]; 13666 v23 = dword_506408[v4];
13667 v6 = v5; 13667 v6 = v5;
13668 } 13668 }
13669 if ( v6->pLevelOfDetail0 ) 13669 if ( v6->pLevelOfDetail0 )
13670 { 13670 {
13671 v7 = 2 * (12 * v0->lastOpenedSpellbookPage + pSpellbookSpellIndices[v0->lastOpenedSpellbookPage][v4]); 13671 v7 = (12 * v0->lastOpenedSpellbookPage + pSpellbookSpellIndices[v0->lastOpenedSpellbookPage][v4]);
13672 v19 = pViewport->uViewportY + dword_4E20D0[v7 + 1]; 13672 v19 = pViewport->uViewportY + pIconPos[v7].Ypos;
13673 v17 = pViewport->uViewportX + dword_4E20D0[v7]; 13673 v17 = pViewport->uViewportX + pIconPos[v7].Xpos;
13674 if ( BYTE1(v6->pBits) & 2 ) 13674 if ( BYTE1(v6->pBits) & 2 )
13675 pRenderer->DrawTextureTransparent(v17, v19, v6); 13675 pRenderer->DrawTextureTransparent(v17, v19, v6);
13676 else 13676 else
13677 pRenderer->DrawTextureIndexed(v17, v19, v6); 13677 pRenderer->DrawTextureIndexed(v17, v19, v6);
13678 v8 = 2 * (12 * v0->lastOpenedSpellbookPage + pSpellbookSpellIndices[v0->lastOpenedSpellbookPage][v4]); 13678 v8 = (12 * v0->lastOpenedSpellbookPage + pSpellbookSpellIndices[v0->lastOpenedSpellbookPage][v4]);
13679 pRenderer->_4A612A(dword_4E20D0[v8], dword_4E20D0[v8 + 1], v23, v4); 13679 pRenderer->_4A612A(pIconPos[v8].Xpos,pIconPos[v8].Ypos, v23, v4);
13680 } 13680 }
13681 } 13681 }
13682 } 13682 }
13683 ++v4; 13683 ++v4;
13684 } 13684 }
13690 { 13690 {
13691 v11 = dword_5063D8[v10]; 13691 v11 = dword_5063D8[v10];
13692 if ( v11->pLevelOfDetail0 ) 13692 if ( v11->pLevelOfDetail0 )
13693 { 13693 {
13694 v21 = dword_5063D8[v10]; 13694 v21 = dword_5063D8[v10];
13695 v12 = 2 * (12 * v0->lastOpenedSpellbookPage + pSpellbookSpellIndices[v0->lastOpenedSpellbookPage][v10]); 13695 v12 = (12 * v0->lastOpenedSpellbookPage + pSpellbookSpellIndices[v0->lastOpenedSpellbookPage][v10]);
13696 v20 = pViewport->uViewportY + dword_4E20D0[v12 + 1]; 13696 v20 = pViewport->uViewportY + pIconPos[v12].Ypos;
13697 v18 = pViewport->uViewportX + dword_4E20D0[v12]; 13697 v18 = pViewport->uViewportX + pIconPos[v12].Xpos;
13698 if ( BYTE1(v11->pBits) & 2 ) 13698 if ( BYTE1(v11->pBits) & 2 )
13699 pRenderer->DrawTextureTransparent(v18, v20, v21); 13699 pRenderer->DrawTextureTransparent(v18, v20, v21);
13700 else 13700 else
13701 pRenderer->DrawTextureIndexed(v18, v20, v21); 13701 pRenderer->DrawTextureIndexed(v18, v20, v21);
13702 } 13702 }