aboutsummaryrefslogtreecommitdiff
path: root/engines/xeen/dialogs/dialogs_items.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2018-03-17 20:27:42 -0400
committerPaul Gilbert2018-03-17 20:27:42 -0400
commit22456b345f4b39558cfc07ccd2e06ab6cfb98850 (patch)
treebb0e31433f624843f6addd563db48726be68dbaf /engines/xeen/dialogs/dialogs_items.cpp
parent562522e14414db68b77595de84d856c39e6cf00d (diff)
downloadscummvm-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_items.cpp')
-rw-r--r--engines/xeen/dialogs/dialogs_items.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/xeen/dialogs/dialogs_items.cpp b/engines/xeen/dialogs/dialogs_items.cpp
index ab2269b2d7..0f6d60890f 100644
--- a/engines/xeen/dialogs/dialogs_items.cpp
+++ b/engines/xeen/dialogs/dialogs_items.cpp
@@ -742,7 +742,7 @@ int ItemsDialog::doItemOptions(Character &c, int actionIndex, int itemIndex, Ite
Sound &sound = *_vm->_sound;
Spells &spells = *_vm->_spells;
Windows &windows = *_vm->_windows;
- bool isDarkCc = _vm->_files->_isDarkCc;
+ int ccNum = _vm->_files->_ccNum;
InventoryItems &items = c._items[category];
if (items[0].empty())
@@ -834,7 +834,7 @@ int ItemsDialog::doItemOptions(Character &c, int actionIndex, int itemIndex, Ite
if (Confirm::show(_vm, Common::String::format(Res.BUY_X_FOR_Y_GOLD,
desc.c_str(), cost))) {
if (party.subtract(CONS_GOLD, cost, WHERE_PARTY, WT_FREEZE_WAIT)) {
- if (isDarkCc) {
+ if (ccNum) {
sound.stopSound();
sound.playSound("choice2.voc");
}