From 8329553a5342b1b3b6d81892199c124db0967fc4 Mon Sep 17 00:00:00 2001 From: Ben Longbons Date: Wed, 16 Feb 2011 23:18:20 -0800 Subject: Add particle notification for "Unable to pick up item." --- src/localplayer.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/localplayer.cpp') diff --git a/src/localplayer.cpp b/src/localplayer.cpp index 2bc63849f..e58ec63ba 100644 --- a/src/localplayer.cpp +++ b/src/localplayer.cpp @@ -1317,6 +1317,12 @@ void LocalPlayer::pickedUp(const ItemInfo &itemInfo, int amount) localChatTab->chatLog(_("Unable to pick up item."), BY_SERVER); } + if (mMap && config.getValue("showpickupparticle", 0)) + { + // Show pickup notification + addMessageToQueue(_("Unable to pick up item."), + UserPalette::PICKUP_INFO); + } } else { @@ -3683,4 +3689,4 @@ void AwayListener::action(const gcn::ActionEvent &event) if (miniStatusWindow) miniStatusWindow->updateStatus(); } -} \ No newline at end of file +} -- cgit v1.2.3-70-g09d2