Browse Source

Hellfire spell book: Set button widths correctly

The hellfire spell book buttons CEL only has 5 frames, all of the
same widths.
pull/5006/merge
Gleb Mazovetskiy 4 years ago
parent
commit
e5e8ba07c2
  1. 8
      Source/panels/spell_book.cpp

8
Source/panels/spell_book.cpp

@ -82,13 +82,7 @@ spell_type GetSBookTrans(spell_id ii, bool townok)
void InitSpellBook()
{
pSpellBkCel = LoadCel("Data\\SpellBk.CEL", static_cast<uint16_t>(SidePanelSize.width));
if (gbIsHellfire) {
static const uint16_t SBkBtnHellfireWidths[] = { 61, 61, 61, 61, 61, 76 };
pSBkBtnCel = LoadCel("Data\\SpellBkB.CEL", SBkBtnHellfireWidths);
} else {
pSBkBtnCel = LoadCel("Data\\SpellBkB.CEL", 76);
}
pSBkBtnCel = LoadCel("Data\\SpellBkB.CEL", gbIsHellfire ? 61 : 76);
pSBkIconCels = LoadCel("Data\\SpellI2.CEL", 37);
Player &player = *MyPlayer;

Loading…
Cancel
Save