summaryrefslogtreecommitdiff
path: root/src/actions/actions.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/actions/actions.cpp
parent92c019dad798f1a84c5d3e8e8331a885f6458133 (diff)
downloadmanaplus-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/actions/actions.cpp')
-rw-r--r--src/actions/actions.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/actions/actions.cpp b/src/actions/actions.cpp
index f9b0c0550..d80949865 100644
--- a/src/actions/actions.cpp
+++ b/src/actions/actions.cpp
@@ -457,7 +457,7 @@ impHandler(dropItemIdAll)
Item *const item = inv->findItem(atoi(event.args.c_str()), 1);
if (item && !PlayerInfo::isItemProtected(item->getId()))
- PlayerInfo::dropItem(item, item->getQuantity(), true);
+ PlayerInfo::dropItem(item, item->getQuantity(), Sfx_true);
return true;
}
@@ -465,7 +465,7 @@ impHandler(dropItemInvAll)
{
Item *const item = getItemByInvIndex(event, InventoryType::INVENTORY);
if (item && !PlayerInfo::isItemProtected(item->getId()))
- PlayerInfo::dropItem(item, item->getQuantity(), true);
+ PlayerInfo::dropItem(item, item->getQuantity(), Sfx_true);
return true;
}
@@ -1452,7 +1452,7 @@ impHandler(useItem)
{
// +++ ignoring item color for now
const Item *const item = inv->findItem(itemId, 1);
- PlayerInfo::useEquipItem(item, true);
+ PlayerInfo::useEquipItem(item, Sfx_true);
}
}
else if (itemId < SKILL_MIN_ID && spellManager)
@@ -1469,7 +1469,7 @@ impHandler(useItem)
impHandler(useItemInv)
{
Item *const item = getItemByInvIndex(event, InventoryType::INVENTORY);
- PlayerInfo::useEquipItem(item, true);
+ PlayerInfo::useEquipItem(item, Sfx_true);
return true;
}