From a87db81b6b7551a248e31e2850577aefda092538 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 5 May 2015 20:58:21 +0300 Subject: Replace most bools usage in playerinfo to strong typed bools. --- src/gui/windows/inventorywindow.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/gui/windows/inventorywindow.cpp') 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( 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 -- cgit v1.2.3-70-g09d2