summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/localplayer.cpp15
1 files changed, 12 insertions, 3 deletions
diff --git a/src/localplayer.cpp b/src/localplayer.cpp
index 3225bac8d..6dd55dace 100644
--- a/src/localplayer.cpp
+++ b/src/localplayer.cpp
@@ -2044,7 +2044,7 @@ std::string LocalPlayer::getAttackTypeString()
mAttackType, attackTypeSize));
}
-const unsigned quickDropCounterSize = 10;
+const unsigned quickDropCounterSize = 31;
void LocalPlayer::changeQuickDropCounter()
{
@@ -2054,8 +2054,17 @@ void LocalPlayer::changeQuickDropCounter()
std::string LocalPlayer::getQuickDropCounterString()
{
- return strprintf("(%d) drop counter %d",
- mQuickDropCounter, mQuickDropCounter);
+ std::string str;
+ if (mQuickDropCounter > 9)
+ {
+ return strprintf("(%c) drop counter %d",
+ 'a' + mQuickDropCounter - 10, mQuickDropCounter);
+ }
+ else
+ {
+ return strprintf("(%d) drop counter %d",
+ mQuickDropCounter, mQuickDropCounter);
+ }
}
const unsigned pickUpTypeSize = 7;