diff options
author | Stefan Dombrowski <stefan@uni-bonn.de> | 2011-02-19 20:11:16 +0100 |
---|---|---|
committer | Stefan Dombrowski <stefan@uni-bonn.de> | 2011-02-19 20:11:33 +0100 |
commit | 93e6f5ae132cda24eb87a6c7ddbe7487fa97de1f (patch) | |
tree | 37ce98fa73ff718987d899abaf358759cc4f8eb9 /src | |
parent | 42a0d79ebbcd8e583ded8ad4613df1d3ed21cfc5 (diff) | |
download | mana-93e6f5ae132cda24eb87a6c7ddbe7487fa97de1f.tar.gz mana-93e6f5ae132cda24eb87a6c7ddbe7487fa97de1f.tar.bz2 mana-93e6f5ae132cda24eb87a6c7ddbe7487fa97de1f.tar.xz mana-93e6f5ae132cda24eb87a6c7ddbe7487fa97de1f.zip |
Showing amount of picked up items in particle notification
Diffstat (limited to 'src')
-rw-r--r-- | src/localplayer.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/localplayer.cpp b/src/localplayer.cpp index 62b45f62..cea27960 100644 --- a/src/localplayer.cpp +++ b/src/localplayer.cpp @@ -1282,7 +1282,11 @@ void LocalPlayer::pickedUp(const ItemInfo &itemInfo, int amount, if (mMap && config.getValue("showpickupparticle", 0)) { // Show pickup notification - addMessageToQueue(itemInfo.getName(), UserPalette::PICKUP_INFO); + std::string msg = ""; + if (amount > 1) + msg = strprintf("%i ", amount); + msg += itemInfo.getName(); + addMessageToQueue(msg, UserPalette::PICKUP_INFO); } } } |