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/gui/windows/equipmentwindow.cpp | |
parent | 92c019dad798f1a84c5d3e8e8331a885f6458133 (diff) | |
download | manaverse-a87db81b6b7551a248e31e2850577aefda092538.tar.gz manaverse-a87db81b6b7551a248e31e2850577aefda092538.tar.bz2 manaverse-a87db81b6b7551a248e31e2850577aefda092538.tar.xz manaverse-a87db81b6b7551a248e31e2850577aefda092538.zip |
Replace most bools usage in playerinfo to strong typed bools.
Diffstat (limited to 'src/gui/windows/equipmentwindow.cpp')
-rw-r--r-- | src/gui/windows/equipmentwindow.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/windows/equipmentwindow.cpp b/src/gui/windows/equipmentwindow.cpp index cc2d34991..44cb01bc1 100644 --- a/src/gui/windows/equipmentwindow.cpp +++ b/src/gui/windows/equipmentwindow.cpp @@ -292,7 +292,7 @@ void EquipmentWindow::action(const ActionEvent &event) return; const Item *const item = mEquipment->getEquipment(mSelected); - PlayerInfo::unequipItem(item, true); + PlayerInfo::unequipItem(item, Sfx_true); setSelected(-1); } else if (!eventId.find("tab_")) @@ -325,7 +325,7 @@ void EquipmentWindow::action(const ActionEvent &event) if (item->isEquipment() == Equipm_true) { if (item->isEquipped() == Equipped_false) - PlayerInfo::equipItem(item, true); + PlayerInfo::equipItem(item, Sfx_true); } } } @@ -469,7 +469,7 @@ void EquipmentWindow::mouseReleased(MouseEvent &event) if (item->isEquipment() == Equipm_true) { if (item->isEquipped() == Equipped_false) - PlayerInfo::equipItem(item, true); + PlayerInfo::equipItem(item, Sfx_true); } } else if (dragDrop.getSource() == DRAGDROP_SOURCE_EQUIPMENT) @@ -493,7 +493,7 @@ void EquipmentWindow::mouseReleased(MouseEvent &event) } if (item->isEquipped() == Equipped_true) - PlayerInfo::unequipItem(item, true); + PlayerInfo::unequipItem(item, Sfx_true); } } dragDrop.clear(); |