From 2f34575b834e2c70583af83a17da59750978f15e Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 8 Feb 2012 04:15:13 +0300 Subject: Increased drop counter max value from 9 to 30. --- src/localplayer.cpp | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'src') 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; -- cgit v1.2.3-70-g09d2