diff options
Diffstat (limited to 'src/localplayer.cpp')
-rw-r--r-- | src/localplayer.cpp | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/localplayer.cpp b/src/localplayer.cpp index f422493ea..2718b9fe0 100644 --- a/src/localplayer.cpp +++ b/src/localplayer.cpp @@ -1322,10 +1322,21 @@ void LocalPlayer::stopAttack() } void LocalPlayer::pickedUp(const ItemInfo &itemInfo, int amount, - unsigned char color, unsigned char fail) + unsigned char color, int floorItemId, + unsigned char fail) { if (fail) { + if (actorSpriteManager && floorItemId) + { + FloorItem *item = actorSpriteManager->findItem(floorItemId); + if (item) + { + if (!item->getShowMsg()) + return; + item->setShowMsg(false); + } + } const char* msg; switch (fail) { |