diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-07-21 21:25:47 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-07-21 21:25:47 +0300 |
commit | c41fcc1f637e76e5ff671b223ce6c151af89e7d3 (patch) | |
tree | ae7afae3d8c30eff4569fc0c41fb8d0ef99ecd94 /src/dropshortcut.cpp | |
parent | 8b6afd0d756b9fc66c9f4de3ef452c24f64c87d1 (diff) | |
download | manaverse-c41fcc1f637e76e5ff671b223ce6c151af89e7d3.tar.gz manaverse-c41fcc1f637e76e5ff671b223ce6c151af89e7d3.tar.bz2 manaverse-c41fcc1f637e76e5ff671b223ce6c151af89e7d3.tar.xz manaverse-c41fcc1f637e76e5ff671b223ce6c151af89e7d3.zip |
move "change drop counter" option into gamemodifiers.
Diffstat (limited to 'src/dropshortcut.cpp')
-rw-r--r-- | src/dropshortcut.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/dropshortcut.cpp b/src/dropshortcut.cpp index ed60e623d..328d71adf 100644 --- a/src/dropshortcut.cpp +++ b/src/dropshortcut.cpp @@ -25,6 +25,7 @@ #include "configuration.h" #include "inventory.h" #include "item.h" +#include "settings.h" #include "being/localplayer.h" #include "being/playerinfo.h" @@ -109,7 +110,7 @@ void DropShortcut::dropFirst() const ->findItem(itemId, itemColor); if (item && item->getQuantity()) { - const int cnt = player_node->getQuickDropCounter(); + const int cnt = settings.quickDropCounter; if (player_node->isServerBuggy()) { PlayerInfo::dropItem(item, cnt, true); @@ -130,12 +131,12 @@ void DropShortcut::dropItems(const int cnt) if (player_node->isServerBuggy()) { - dropItem(player_node->getQuickDropCounter()); + dropItem(settings.quickDropCounter); return; } int n = 0; - const int sz = player_node->getQuickDropCounter(); + const int sz = settings.quickDropCounter; for (int f = 0; f < 9; f++) { for (int i = 0; i < sz; i++) |