summaryrefslogtreecommitdiff
path: root/src/dropshortcut.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-07-21 21:25:47 +0300
committerAndrei Karas <akaras@inbox.ru>2014-07-21 21:25:47 +0300
commitc41fcc1f637e76e5ff671b223ce6c151af89e7d3 (patch)
treeae7afae3d8c30eff4569fc0c41fb8d0ef99ecd94 /src/dropshortcut.cpp
parent8b6afd0d756b9fc66c9f4de3ef452c24f64c87d1 (diff)
downloadmv-c41fcc1f637e76e5ff671b223ce6c151af89e7d3.tar.gz
mv-c41fcc1f637e76e5ff671b223ce6c151af89e7d3.tar.bz2
mv-c41fcc1f637e76e5ff671b223ce6c151af89e7d3.tar.xz
mv-c41fcc1f637e76e5ff671b223ce6c151af89e7d3.zip
move "change drop counter" option into gamemodifiers.
Diffstat (limited to 'src/dropshortcut.cpp')
-rw-r--r--src/dropshortcut.cpp7
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++)