From e5e8ba07c22a826128c7ea226f8e94ff46948044 Mon Sep 17 00:00:00 2001 From: Gleb Mazovetskiy Date: Mon, 18 Jul 2022 08:33:26 +0100 Subject: [PATCH] Hellfire spell book: Set button widths correctly The hellfire spell book buttons CEL only has 5 frames, all of the same widths. --- Source/panels/spell_book.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/Source/panels/spell_book.cpp b/Source/panels/spell_book.cpp index 1ad56a908..0db36e4fa 100644 --- a/Source/panels/spell_book.cpp +++ b/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(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;