summaryrefslogtreecommitdiff
path: root/src/dropshortcut.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/dropshortcut.cpp
parent92c019dad798f1a84c5d3e8e8331a885f6458133 (diff)
downloadplus-a87db81b6b7551a248e31e2850577aefda092538.tar.gz
plus-a87db81b6b7551a248e31e2850577aefda092538.tar.bz2
plus-a87db81b6b7551a248e31e2850577aefda092538.tar.xz
plus-a87db81b6b7551a248e31e2850577aefda092538.zip
Replace most bools usage in playerinfo to strong typed bools.
Diffstat (limited to 'src/dropshortcut.cpp')
-rw-r--r--src/dropshortcut.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/dropshortcut.cpp b/src/dropshortcut.cpp
index 66a58c6bd..1c860f7d4 100644
--- a/src/dropshortcut.cpp
+++ b/src/dropshortcut.cpp
@@ -73,12 +73,12 @@ void DropShortcut::dropFirst() const
const int cnt = settings.quickDropCounter;
if (localPlayer->isServerBuggy())
{
- PlayerInfo::dropItem(item, cnt, true);
+ PlayerInfo::dropItem(item, cnt, Sfx_true);
}
else
{
for (int i = 0; i < cnt; i++)
- PlayerInfo::dropItem(item, 1, false);
+ PlayerInfo::dropItem(item, 1, Sfx_false);
}
}
}
@@ -134,7 +134,7 @@ bool DropShortcut::dropItem(const int cnt)
const Item *const item = inv->findItem(itemId, itemColor);
if (item && item->getQuantity() > 0)
{
- PlayerInfo::dropItem(item, cnt, true);
+ PlayerInfo::dropItem(item, cnt, Sfx_true);
return true;
}
}
@@ -157,7 +157,7 @@ bool DropShortcut::dropItem(const int cnt)
const Item *const item = inv->findItem(itemId, itemColor);
if (item && item->getQuantity() > 0)
{
- PlayerInfo::dropItem(item, cnt, true);
+ PlayerInfo::dropItem(item, cnt, Sfx_true);
return true;
}
}