diff options
author | Paul Gilbert | 2015-01-29 08:42:31 -0500 |
---|---|---|
committer | Paul Gilbert | 2015-01-29 08:42:31 -0500 |
commit | be327cb7672652a44294a13b9fa4215ae6358b6a (patch) | |
tree | 95ac1eb0f12553925d4a4a649be5280ea65f8df8 /engines/xeen/party.cpp | |
parent | e34429207c9d632a1f72680a08409992e81d95a5 (diff) | |
download | scummvm-rg350-be327cb7672652a44294a13b9fa4215ae6358b6a.tar.gz scummvm-rg350-be327cb7672652a44294a13b9fa4215ae6358b6a.tar.bz2 scummvm-rg350-be327cb7672652a44294a13b9fa4215ae6358b6a.zip |
XEEN: Implemented setSpellText for spells dialog
Diffstat (limited to 'engines/xeen/party.cpp')
-rw-r--r-- | engines/xeen/party.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/engines/xeen/party.cpp b/engines/xeen/party.cpp index 66ba405909..2138ca6154 100644 --- a/engines/xeen/party.cpp +++ b/engines/xeen/party.cpp @@ -27,6 +27,7 @@ #include "xeen/files.h" #include "xeen/resources.h" #include "xeen/saves.h" +#include "xeen/spells.h" #include "xeen/xeen.h" namespace Xeen { @@ -52,7 +53,7 @@ Character::Character() { _tempAge = 0; Common::fill(&_skills[0], &_skills[18], 0); Common::fill(&_awards[0], &_awards[128], false); - Common::fill(&_spells[9], &_spells[312], false); + Common::fill(&_spells[0], &_spells[39], 0); _lloydMap = 0; _hasSpells = false; _currentSpell = 0; @@ -110,8 +111,8 @@ void Character::synchronize(Common::Serializer &s) { } // Synchronize spell list - SavesManager::syncBitFlags(s, &_spells[0], &_spells[312]); - + for (int i = 0; i < MAX_SPELLS_PER_CLASS - 1; ++i) + s.syncAsByte(_spells[i]); s.syncAsByte(_lloydMap); s.syncAsByte(_lloydPosition.x); s.syncAsByte(_lloydPosition.y); |