diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-02-08 04:15:13 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-02-08 04:15:13 +0300 |
commit | 2f34575b834e2c70583af83a17da59750978f15e (patch) | |
tree | 4be4e395b4d0b560d87733d0e3aa8dba465619e3 | |
parent | 178f4811e8602ba7dacb1a0513baa546088d517d (diff) | |
download | manaplus-2f34575b834e2c70583af83a17da59750978f15e.tar.gz manaplus-2f34575b834e2c70583af83a17da59750978f15e.tar.bz2 manaplus-2f34575b834e2c70583af83a17da59750978f15e.tar.xz manaplus-2f34575b834e2c70583af83a17da59750978f15e.zip |
Increased drop counter max value from 9 to 30.
-rw-r--r-- | src/localplayer.cpp | 15 |
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; |