diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-03-09 02:10:02 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-03-09 14:39:29 +0300 |
commit | 29c0c9e731694a40a6f2e41c6bdedb4b78e2b952 (patch) | |
tree | e944129f98e652f2bd9adbcf5cd273a8bbb9e528 /src/net/ea/inventoryhandler.cpp | |
parent | 0aca242db52695fa0804ac180fc7961b281b422a (diff) | |
download | manaplus-29c0c9e731694a40a6f2e41c6bdedb4b78e2b952.tar.gz manaplus-29c0c9e731694a40a6f2e41c6bdedb4b78e2b952.tar.bz2 manaplus-29c0c9e731694a40a6f2e41c6bdedb4b78e2b952.tar.xz manaplus-29c0c9e731694a40a6f2e41c6bdedb4b78e2b952.zip |
Add new notifications to guildhandler, guildmanager, inventoryhandler and partyhandler.
Diffstat (limited to 'src/net/ea/inventoryhandler.cpp')
-rw-r--r-- | src/net/ea/inventoryhandler.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/net/ea/inventoryhandler.cpp b/src/net/ea/inventoryhandler.cpp index eceb194f9..9e751f27c 100644 --- a/src/net/ea/inventoryhandler.cpp +++ b/src/net/ea/inventoryhandler.cpp @@ -23,6 +23,7 @@ #include "net/ea/inventoryhandler.h" #include "localplayer.h" +#include "notifymanager.h" #include "gui/ministatuswindow.h" @@ -399,7 +400,7 @@ void InventoryHandler::processItemUseResponse(Net::MessageIn &msg) if (msg.readInt8() == 0) { - SERVER_NOTICE(_("Failed to use item.")) + NotifyManager::notify(NotifyManager::USE_FAILED); } else { @@ -565,7 +566,7 @@ void InventoryHandler::processPlayerEquip(Net::MessageIn &msg) const int flag = msg.readInt8(); if (!flag) - SERVER_NOTICE(_("Unable to equip.")) + NotifyManager::notify(NotifyManager::EQUIP_FAILED); else mEquips.setEquipment(getSlot(equipType), index); } |