summaryrefslogtreecommitdiff
path: root/src/gui/windows/inventorywindow.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-05-05 20:58:21 +0300
committerAndrei Karas <akaras@inbox.ru>2015-05-05 20:58:21 +0300
commita87db81b6b7551a248e31e2850577aefda092538 (patch)
treef47c20512183113face758cf58ec71369c82806c /src/gui/windows/inventorywindow.cpp
parent92c019dad798f1a84c5d3e8e8331a885f6458133 (diff)
downloadmv-a87db81b6b7551a248e31e2850577aefda092538.tar.gz
mv-a87db81b6b7551a248e31e2850577aefda092538.tar.bz2
mv-a87db81b6b7551a248e31e2850577aefda092538.tar.xz
mv-a87db81b6b7551a248e31e2850577aefda092538.zip
Replace most bools usage in playerinfo to strong typed bools.
Diffstat (limited to 'src/gui/windows/inventorywindow.cpp')
-rw-r--r--src/gui/windows/inventorywindow.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/windows/inventorywindow.cpp b/src/gui/windows/inventorywindow.cpp
index 65e89bbb3..c87fe3ebc 100644
--- a/src/gui/windows/inventorywindow.cpp
+++ b/src/gui/windows/inventorywindow.cpp
@@ -461,11 +461,11 @@ void InventoryWindow::action(const ActionEvent &event)
if (eventId == "use")
{
- PlayerInfo::useEquipItem(item, true);
+ PlayerInfo::useEquipItem(item, Sfx_true);
}
if (eventId == "equip")
{
- PlayerInfo::useEquipItem2(item, true);
+ PlayerInfo::useEquipItem2(item, Sfx_true);
}
else if (eventId == "drop")
{
@@ -491,7 +491,7 @@ void InventoryWindow::action(const ActionEvent &event)
if (inputManager.isActionActive(static_cast<int>(
InputAction::STOP_ATTACK)))
{
- PlayerInfo::dropItem(item, item->getQuantity(), true);
+ PlayerInfo::dropItem(item, item->getQuantity(), Sfx_true);
}
else
{
@@ -647,7 +647,7 @@ void InventoryWindow::mouseClicked(MouseEvent &event)
}
else
{
- PlayerInfo::useEquipItem(item, true);
+ PlayerInfo::useEquipItem(item, Sfx_true);
}
}
else