comparison GUIWindow.cpp @ 357:b07cf89108d5

Spell positions in book
author Gloval
date Thu, 21 Feb 2013 14:26:00 +0400
parents ee4aa06b6d51
children 2bc1c8d68f41
comparison
equal deleted inserted replaced
356:b9aff98467e3 357:b07cf89108d5
984 for (uint i = 0; i < 11; ++i) 984 for (uint i = 0; i < 11; ++i)
985 { 985 {
986 if (!chapter->bIsSpellAvailable[i]) 986 if (!chapter->bIsSpellAvailable[i])
987 continue; 987 continue;
988 988
989 v4 = 2 * (12 * pPlayer->lastOpenedSpellbookPage + pSpellbookSpellIndices[pPlayer->lastOpenedSpellbookPage][i + 1]); 989 v4 = (12 * pPlayer->lastOpenedSpellbookPage + pSpellbookSpellIndices[pPlayer->lastOpenedSpellbookPage][i + 1]);
990 CreateButton(pViewport->uViewportX + dword_4E20D0[v4], 990 CreateButton(pViewport->uViewportX + pIconPos[v4].Xpos,
991 pViewport->uViewportY + dword_4E20D0[v4 + 1], 991 pViewport->uViewportY + pIconPos[v4].Ypos, //dword_4E20D0
992 dword_506408[i + 1]->uTextureWidth, 992 dword_506408[i + 1]->uTextureWidth,
993 dword_506408[i + 1]->uTextureHeight, 993 dword_506408[i + 1]->uTextureHeight,
994 1, 79, 0x56u, i, 0, "", 0); 994 1, 79, 0x56u, i, 0, "", 0);
995 ++a2; 995 ++a2;
996 //++v3; 996 //++v3;