From 41951c02b8636bce19c488aae738d7d0ac61df3d Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 19 Nov 2015 00:22:50 +0300 Subject: Fix code style in dropshortcut. --- src/dropshortcut.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src') 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)) { -- cgit v1.2.3-70-g09d2