summaryrefslogtreecommitdiff
path: root/src/localplayer.cpp
diff options
context:
space:
mode:
authorBen Longbons <b.r.longbons@gmail.com>2011-02-16 23:18:20 -0800
committerAndrei Karas <akaras@inbox.ru>2011-02-18 18:12:59 +0200
commit8329553a5342b1b3b6d81892199c124db0967fc4 (patch)
tree57950133344348937d62d582e693ac01b79d1839 /src/localplayer.cpp
parent3b699158d2732d45e3a6bbb8c0dc1abfe85a9167 (diff)
downloadplus-8329553a5342b1b3b6d81892199c124db0967fc4.tar.gz
plus-8329553a5342b1b3b6d81892199c124db0967fc4.tar.bz2
plus-8329553a5342b1b3b6d81892199c124db0967fc4.tar.xz
plus-8329553a5342b1b3b6d81892199c124db0967fc4.zip
Add particle notification for "Unable to pick up item."
Diffstat (limited to 'src/localplayer.cpp')
-rw-r--r--src/localplayer.cpp8
1 files changed, 7 insertions, 1 deletions
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
+}