# HG changeset patch # User zipi # Date 1361317775 0 # Node ID 981fbe2da2329bbf46fd02d78bb42ead5b5f2e70 # Parent e41fe9cf361334d659489487c1aa0ca9218e917a spellbook spells fixed diff -r e41fe9cf3613 -r 981fbe2da232 Player.cpp --- a/Player.cpp Wed Feb 20 01:21:59 2013 +0200 +++ b/Player.cpp Tue Feb 19 23:49:35 2013 +0000 @@ -7542,7 +7542,7 @@ goto LABEL_92; } v15 = pParty->pPickedItem.uItemID - 400; - v72 = (char *)&v3->pConditions[0] + pParty->pPickedItem.uItemID + 2; + v72 = (char *)&v3->spellbook.pFireSpellbook+pParty->pPickedItem.uItemID-400;//(char *)&v3->pConditions[0] + pParty->pPickedItem.uItemID + 2; if ( *v72 ) { v66 = pParty->pPickedItem.GetDisplayName(); diff -r e41fe9cf3613 -r 981fbe2da232 mm7_5.cpp --- a/mm7_5.cpp Wed Feb 20 01:21:59 2013 +0200 +++ b/mm7_5.cpp Tue Feb 19 23:49:35 2013 +0000 @@ -13544,10 +13544,10 @@ { if (v11[i]) { - sprintf(pContainer, "SB%sS%02d", spellbook_texture_filename_suffices[school], pSpellbookSpellIndices[school][i]); + sprintf(pContainer, "SB%cS%02d", spellbook_texture_filename_suffices[school], pSpellbookSpellIndices[school][i]); dword_506408[i] = pIcons_LOD->LoadTexturePtr(pContainer, TEXTURE_16BIT_PALETTE); - sprintf(pContainer, "SB%sC%02d", spellbook_texture_filename_suffices[school], pSpellbookSpellIndices[school][i]); + sprintf(pContainer, "SB%cC%02d", spellbook_texture_filename_suffices[school], pSpellbookSpellIndices[school][i]); dword_5063D8[i] = pIcons_LOD->LoadTexturePtr(pContainer, TEXTURE_16BIT_PALETTE); } } diff -r e41fe9cf3613 -r 981fbe2da232 mm7_data.h --- a/mm7_data.h Wed Feb 20 01:21:59 2013 +0200 +++ b/mm7_data.h Tue Feb 19 23:49:35 2013 +0000 @@ -366,7 +366,7 @@ extern char aPending[]; // idb extern char aCanTFindS[]; // idb extern char pDayMoonPhase[28]; -extern char *spellbook_texture_filename_suffices[8]; // weak +extern char spellbook_texture_filename_suffices[9]; // weak extern __int16 word_4E1D3A[]; // weak extern __int16 pTownPortalBook_xs[6]; extern __int16 pTownPortalBook_ys[6];