diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-11-19 00:22:50 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-11-19 00:22:50 +0300 |
commit | 41951c02b8636bce19c488aae738d7d0ac61df3d (patch) | |
tree | 7ea509b5700d1af7d32f77babbf0b76c2b32fe34 /src | |
parent | 490a88bc196d6191e243fb3491a9c4fc864ac60a (diff) | |
download | manaverse-41951c02b8636bce19c488aae738d7d0ac61df3d.tar.gz manaverse-41951c02b8636bce19c488aae738d7d0ac61df3d.tar.bz2 manaverse-41951c02b8636bce19c488aae738d7d0ac61df3d.tar.xz manaverse-41951c02b8636bce19c488aae738d7d0ac61df3d.zip |
Fix code style in dropshortcut.
Diffstat (limited to 'src')
-rw-r--r-- | src/dropshortcut.cpp | 9 |
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)) { |