summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-02-13 17:59:24 +0200
committerAndrei Karas <akaras@inbox.ru>2011-02-13 17:59:24 +0200
commit15b8c6e64326caf9cea7e948f48cf487cef625b5 (patch)
tree65a76d7876abafd62a920a91e900d2bd5abb6841 /src
parent4a62b4f1eed406d74a998a158d442ad4cc04e5b9 (diff)
downloadplus-15b8c6e64326caf9cea7e948f48cf487cef625b5.tar.gz
plus-15b8c6e64326caf9cea7e948f48cf487cef625b5.tar.bz2
plus-15b8c6e64326caf9cea7e948f48cf487cef625b5.tar.xz
plus-15b8c6e64326caf9cea7e948f48cf487cef625b5.zip
Show pickedup amount in pickup particles.
Diffstat (limited to 'src')
-rw-r--r--src/localplayer.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/localplayer.cpp b/src/localplayer.cpp
index b41f1d971..2bc63849f 100644
--- a/src/localplayer.cpp
+++ b/src/localplayer.cpp
@@ -1333,7 +1333,16 @@ void LocalPlayer::pickedUp(const ItemInfo &itemInfo, int amount)
if (mMap && config.getBoolValue("showpickupparticle"))
{
// Show pickup notification
- addMessageToQueue(itemInfo.getName(), UserPalette::PICKUP_INFO);
+ if (amount > 1)
+ {
+ addMessageToQueue(strprintf("%d x %s", amount,
+ itemInfo.getName().c_str()), UserPalette::PICKUP_INFO);
+ }
+ else
+ {
+ addMessageToQueue(itemInfo.getName(),
+ UserPalette::PICKUP_INFO);
+ }
}
}
}