summaryrefslogtreecommitdiff
path: root/src/localplayer.cpp
diff options
context:
space:
mode:
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()