Mercurial > mm7
diff mm7_5.cpp @ 321:15decc249a94
quick fix to spells commit (wasnt compiling)
author | Nomad |
---|---|
date | Wed, 20 Feb 2013 03:35:22 +0200 |
parents | 0b2af9c5f70f |
children | ce39b96acf5c |
line wrap: on
line diff
--- a/mm7_5.cpp Wed Feb 20 02:56:46 2013 +0200 +++ b/mm7_5.cpp Wed Feb 20 03:35:22 2013 +0200 @@ -13538,16 +13538,17 @@ else dword_50654C = 0; - char *v11 = &pPlayer->field_152[11 * school + 63]; + //char *v11 = &pPlayer->field_152[11 * school + 63]; for (uint i = 1; i < 12; ++i) { - if (v11[i]) - { - sprintf(pContainer, "SB%cS%02d", spellbook_texture_filename_suffices[school], pSpellbookSpellIndices[school][i]); + //if (v11[i]) + if (pPlayer->spellbook.pChapters[school].bIsSpellAvailable[i - 1]) + { + sprintf(pContainer, "SB%sS%02d", spellbook_texture_filename_suffices[school], pSpellbookSpellIndices[school][i]); dword_506408[i] = pIcons_LOD->LoadTexturePtr(pContainer, TEXTURE_16BIT_PALETTE); - sprintf(pContainer, "SB%cC%02d", spellbook_texture_filename_suffices[school], pSpellbookSpellIndices[school][i]); + sprintf(pContainer, "SB%sC%02d", spellbook_texture_filename_suffices[school], pSpellbookSpellIndices[school][i]); dword_5063D8[i] = pIcons_LOD->LoadTexturePtr(pContainer, TEXTURE_16BIT_PALETTE); } }