summaryrefslogtreecommitdiff
path: root/src/localplayer.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-02-08 04:54:13 +0300
committerAndrei Karas <akaras@inbox.ru>2012-02-08 04:54:13 +0300
commit30b2f0350767d4d0e78d27b9a1fd33e2095171b9 (patch)
tree753a5b2a235ec49deb768f18135d2e6640c9e759 /src/localplayer.cpp
parent2f34575b834e2c70583af83a17da59750978f15e (diff)
downloadplus-30b2f0350767d4d0e78d27b9a1fd33e2095171b9.tar.gz
plus-30b2f0350767d4d0e78d27b9a1fd33e2095171b9.tar.bz2
plus-30b2f0350767d4d0e78d27b9a1fd33e2095171b9.tar.xz
plus-30b2f0350767d4d0e78d27b9a1fd33e2095171b9.zip
Add chat command /setdrop N to set change drop counter.
Diffstat (limited to 'src/localplayer.cpp')
-rw-r--r--src/localplayer.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/localplayer.cpp b/src/localplayer.cpp
index 6dd55dace..01e8c1ae8 100644
--- a/src/localplayer.cpp
+++ b/src/localplayer.cpp
@@ -2067,6 +2067,16 @@ std::string LocalPlayer::getQuickDropCounterString()
}
}
+void LocalPlayer::setQuickDropCounter(int n)
+{
+ if (n < 1 || n >= (signed)quickDropCounterSize)
+ return;
+ mQuickDropCounter = n;
+ config.setValue("quickDropCounter", mQuickDropCounter);
+ if (miniStatusWindow)
+ miniStatusWindow->updateStatus();
+}
+
const unsigned pickUpTypeSize = 7;
void LocalPlayer::changePickUpType()