summaryrefslogtreecommitdiff
path: root/src/dropshortcut.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-11-19 00:22:50 +0300
committerAndrei Karas <akaras@inbox.ru>2015-11-19 00:22:50 +0300
commit41951c02b8636bce19c488aae738d7d0ac61df3d (patch)
tree7ea509b5700d1af7d32f77babbf0b76c2b32fe34 /src/dropshortcut.cpp
parent490a88bc196d6191e243fb3491a9c4fc864ac60a (diff)
downloadplus-41951c02b8636bce19c488aae738d7d0ac61df3d.tar.gz
plus-41951c02b8636bce19c488aae738d7d0ac61df3d.tar.bz2
plus-41951c02b8636bce19c488aae738d7d0ac61df3d.tar.xz
plus-41951c02b8636bce19c488aae738d7d0ac61df3d.zip
Fix code style in dropshortcut.
Diffstat (limited to 'src/dropshortcut.cpp')
-rw-r--r--src/dropshortcut.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/dropshortcut.cpp b/src/dropshortcut.cpp
index 96d44311e..d112b4796 100644
--- a/src/dropshortcut.cpp
+++ b/src/dropshortcut.cpp
@@ -117,7 +117,8 @@ bool DropShortcut::dropItem(const int cnt)
int itemId = 0;
ItemColor itemColor = ItemColor_one;
- while (mLastDropIndex < DROP_SHORTCUT_ITEMS && itemId < 1)
+ while (mLastDropIndex < DROP_SHORTCUT_ITEMS &&
+ itemId < 1)
{
if (!PlayerInfo::isItemProtected(itemId))
{
@@ -130,7 +131,8 @@ bool DropShortcut::dropItem(const int cnt)
if (itemId > 0)
{
const Item *const item = inv->findItem(itemId, itemColor);
- if (item && item->getQuantity() > 0)
+ if (item &&
+ item->getQuantity() > 0)
{
PlayerInfo::dropItem(item, cnt, Sfx_true);
return true;
@@ -141,7 +143,8 @@ bool DropShortcut::dropItem(const int cnt)
if (itemId < 1)
{
- while (mLastDropIndex < DROP_SHORTCUT_ITEMS && itemId < 1)
+ while (mLastDropIndex < DROP_SHORTCUT_ITEMS &&
+ itemId < 1)
{
if (!PlayerInfo::isItemProtected(itemId))
{