diff options
author | Paul Gilbert | 2018-03-17 20:27:42 -0400 |
---|---|---|
committer | Paul Gilbert | 2018-03-17 20:27:42 -0400 |
commit | 22456b345f4b39558cfc07ccd2e06ab6cfb98850 (patch) | |
tree | bb0e31433f624843f6addd563db48726be68dbaf /engines/xeen/dialogs/dialogs_create_char.cpp | |
parent | 562522e14414db68b77595de84d856c39e6cf00d (diff) | |
download | scummvm-rg350-22456b345f4b39558cfc07ccd2e06ab6cfb98850.tar.gz scummvm-rg350-22456b345f4b39558cfc07ccd2e06ab6cfb98850.tar.bz2 scummvm-rg350-22456b345f4b39558cfc07ccd2e06ab6cfb98850.zip |
XEEN: Change bool _isDarkCc to int _ccNum
Originally the flag was whether the party was on the Dark Side,
but as a bool I was having to cast it to an int side/cc number in
more and more places. So now I've converted it to _ccNum, and it
can be used directly as an int
Diffstat (limited to 'engines/xeen/dialogs/dialogs_create_char.cpp')
-rw-r--r-- | engines/xeen/dialogs/dialogs_create_char.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/xeen/dialogs/dialogs_create_char.cpp b/engines/xeen/dialogs/dialogs_create_char.cpp index 577ae5314b..72f1b749ac 100644 --- a/engines/xeen/dialogs/dialogs_create_char.cpp +++ b/engines/xeen/dialogs/dialogs_create_char.cpp @@ -579,7 +579,7 @@ bool CreateCharacterDialog::saveCharacter(Character &c, int classId, Race race, Window &w = windows[6]; Common::String name; int result; - bool isDarkCc = _vm->_files->_isDarkCc; + int ccNum = _vm->_files->_ccNum; // Prompt for a character name w.open(); @@ -601,7 +601,7 @@ bool CreateCharacterDialog::saveCharacter(Character &c, int classId, Race race, c._sex = sex; c._race = race; c._class = (CharacterClass)classId; - c._level._permanent = isDarkCc ? 5 : 1; + c._level._permanent = ccNum ? 5 : 1; c._might._permanent = _attribs[MIGHT]; c._intellect._permanent = _attribs[INTELLECT]; |