summaryrefslogtreecommitdiff
path: root/src/commands.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/commands.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/commands.cpp')
-rw-r--r--src/commands.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/commands.cpp b/src/commands.cpp
index 09eee8b05..f64e570c1 100644
--- a/src/commands.cpp
+++ b/src/commands.cpp
@@ -27,6 +27,7 @@
#include "client.h"
#include "configuration.h"
#include "game.h"
+#include "gamemodifiers.h"
#include "graphicsmanager.h"
#include "guildmanager.h"
#include "main.h"
@@ -1161,8 +1162,8 @@ impHandler2(dumpTests)
impHandler1(setDrop)
{
- if (player_node)
- player_node->setQuickDropCounter(atoi(args.c_str()));
+ if (modifiers)
+ modifiers->setQuickDropCounter(atoi(args.c_str()));
}
impHandler0(error)