diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-05-05 20:58:21 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-05-05 20:58:21 +0300 |
commit | a87db81b6b7551a248e31e2850577aefda092538 (patch) | |
tree | f47c20512183113face758cf58ec71369c82806c /src/itemshortcut.cpp | |
parent | 92c019dad798f1a84c5d3e8e8331a885f6458133 (diff) | |
download | manaplus-a87db81b6b7551a248e31e2850577aefda092538.tar.gz manaplus-a87db81b6b7551a248e31e2850577aefda092538.tar.bz2 manaplus-a87db81b6b7551a248e31e2850577aefda092538.tar.xz manaplus-a87db81b6b7551a248e31e2850577aefda092538.zip |
Replace most bools usage in playerinfo to strong typed bools.
Diffstat (limited to 'src/itemshortcut.cpp')
-rw-r--r-- | src/itemshortcut.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/itemshortcut.cpp b/src/itemshortcut.cpp index 10a05824d..05035c5d0 100644 --- a/src/itemshortcut.cpp +++ b/src/itemshortcut.cpp @@ -131,7 +131,7 @@ void ItemShortcut::useItem(const int index) const { const Item *const item = inv->findItem(itemId, itemColor); if (item && item->getQuantity()) - PlayerInfo::useEquipItem(item, true); + PlayerInfo::useEquipItem(item, Sfx_true); } else if (itemId < SKILL_MIN_ID && spellManager) { @@ -159,7 +159,7 @@ void ItemShortcut::equipItem(const int index) const if (item->isEquipment() == Equipm_true) { if (item->isEquipped() == Equipped_false) - PlayerInfo::equipItem(item, true); + PlayerInfo::equipItem(item, Sfx_true); } } } @@ -179,7 +179,7 @@ void ItemShortcut::unequipItem(const int index) const if (item->isEquipment() == Equipm_true) { if (item->isEquipped() == Equipped_true) - PlayerInfo::unequipItem(item, true); + PlayerInfo::unequipItem(item, Sfx_true); } } } |