diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-03-08 22:25:23 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-03-08 23:44:33 +0300 |
commit | 6328313a6d8a76b4d38a82f6f4dcef350c695704 (patch) | |
tree | fd2aba6ed0af90547f0805b335a461bda555a170 /src/net/ea | |
parent | dcd0d2e4d8a827d06a10344855d8d044bd26630d (diff) | |
download | manaverse-6328313a6d8a76b4d38a82f6f4dcef350c695704.tar.gz manaverse-6328313a6d8a76b4d38a82f6f4dcef350c695704.tar.bz2 manaverse-6328313a6d8a76b4d38a82f6f4dcef350c695704.tar.xz manaverse-6328313a6d8a76b4d38a82f6f4dcef350c695704.zip |
Impliment notify manager.
Move buy/sell notifications to NotifyManager.
Diffstat (limited to 'src/net/ea')
-rw-r--r-- | src/net/ea/buysellhandler.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/net/ea/buysellhandler.cpp b/src/net/ea/buysellhandler.cpp index 1b24c6b42..2838f8351 100644 --- a/src/net/ea/buysellhandler.cpp +++ b/src/net/ea/buysellhandler.cpp @@ -25,9 +25,9 @@ #include "actorspritemanager.h" #include "client.h" #include "configuration.h" -#include "depricatedevent.h" #include "inventory.h" #include "localplayer.h" +#include "notifymanager.h" #include "playerinfo.h" #include "gui/buydialog.h" @@ -160,7 +160,7 @@ void BuySellHandler::processNpcSell(Net::MessageIn &msg, int offset) } else { - SERVER_NOTICE(_("Nothing to sell.")) + NotifyManager::notify(NotifyManager::SELL_LIST_EMPTY); } } @@ -168,7 +168,7 @@ void BuySellHandler::processNpcBuyResponse(Net::MessageIn &msg) { if (msg.readInt8() == 0) { - SERVER_NOTICE(_("Thanks for buying.")) + NotifyManager::notify(NotifyManager::BUY_DONE); } else { @@ -176,7 +176,7 @@ void BuySellHandler::processNpcBuyResponse(Net::MessageIn &msg) // would go fine if (mBuyDialog) mBuyDialog->setMoney(PlayerInfo::getAttribute(PlayerInfo::MONEY)); - SERVER_NOTICE(_("Unable to buy.")) + NotifyManager::notify(NotifyManager::BUY_FAILED); } } |