summaryrefslogtreecommitdiff
path: root/src/localplayer.cpp
diff options
context:
space:
mode:
authorStefan Dombrowski <stefan@uni-bonn.de>2011-02-19 20:11:16 +0100
committerStefan Dombrowski <stefan@uni-bonn.de>2011-02-19 20:11:33 +0100
commit93e6f5ae132cda24eb87a6c7ddbe7487fa97de1f (patch)
tree37ce98fa73ff718987d899abaf358759cc4f8eb9 /src/localplayer.cpp
parent42a0d79ebbcd8e583ded8ad4613df1d3ed21cfc5 (diff)
downloadmana-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/localplayer.cpp')
-rw-r--r--src/localplayer.cpp6
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);
}
}
}