Browse Source

♻️Clean up type sizes

pull/1907/head
Anders Jenbo 5 years ago
parent
commit
79c9078fa1
  1. 6
      Source/control.cpp
  2. 2
      Source/player.h

6
Source/control.cpp

@ -315,11 +315,9 @@ static void DrawSpell(const CelOutputBuffer &out)
if (currlevel == 0 && st != RSPLTYPE_INVALID && !spelldata[spl].sTownSpell)
st = RSPLTYPE_INVALID;
SetSpellTrans(st);
const int nCel = (spl != SPL_INVALID) ? SpellITbl[spl] : 27;
const Point position { PANEL_X + 565, PANEL_Y + 119 };
if (spl != SPL_INVALID)
DrawSpellCel(out, position, *pSpellCels, SpellITbl[spl]);
else
DrawSpellCel(out, position, *pSpellCels, 27);
DrawSpellCel(out, position, *pSpellCels, nCel);
}
static void PrintSBookHotkey(const CelOutputBuffer &out, Point position, const std::string &text)

2
Source/player.h

@ -80,7 +80,7 @@ enum inv_body_loc : uint8_t {
NUM_INVLOC,
};
enum class player_graphic : uint16_t {
enum class player_graphic : uint8_t {
Stand,
Walk,
Attack,

Loading…
Cancel
Save