diff options
author | Paul Gilbert | 2018-03-19 18:32:07 -0400 |
---|---|---|
committer | Paul Gilbert | 2018-03-19 18:33:47 -0400 |
commit | 5645d63acdac555d987cb106bf1e84182c7ae52e (patch) | |
tree | 8b0758260830dd9fad8ece036742c75a5df4a3a0 /engines/xeen/character.h | |
parent | ef593ed8e33891200f80410a5aef6bd3e87f0a0a (diff) | |
download | scummvm-rg350-5645d63acdac555d987cb106bf1e84182c7ae52e.tar.gz scummvm-rg350-5645d63acdac555d987cb106bf1e84182c7ae52e.tar.bz2 scummvm-rg350-5645d63acdac555d987cb106bf1e84182c7ae52e.zip |
XEEN: Standardize on a single SPELLS_PER_CLASS define
There was previous confusion because characters can have a maximum of
39 spells for their class. But the spell list for each class has
40 entries, of which the last one, #39, is always the 'No Spell' value
Diffstat (limited to 'engines/xeen/character.h')
-rw-r--r-- | engines/xeen/character.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/engines/xeen/character.h b/engines/xeen/character.h index b37431a40f..9a757b56e2 100644 --- a/engines/xeen/character.h +++ b/engines/xeen/character.h @@ -34,8 +34,7 @@ namespace Xeen { #define INV_ITEMS_TOTAL 9 -#define CHAR_MAX_SPELLS 39 -#define SPELLS_PER_CLASS 40 +#define SPELLS_PER_CLASS 39 #define AWARDS_TOTAL 88 #define WARZONE_AWARD 9 @@ -125,7 +124,7 @@ public: int _tempAge; int _skills[18]; int _awards[128]; - bool _spells[CHAR_MAX_SPELLS]; + bool _spells[SPELLS_PER_CLASS]; int _lloydMap; Common::Point _lloydPosition; bool _hasSpells; |