From 6328313a6d8a76b4d38a82f6f4dcef350c695704 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 8 Mar 2013 22:25:23 +0300 Subject: Impliment notify manager. Move buy/sell notifications to NotifyManager. --- src/net/tmwa/buysellhandler.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/net/tmwa/buysellhandler.cpp') diff --git a/src/net/tmwa/buysellhandler.cpp b/src/net/tmwa/buysellhandler.cpp index 00cb16231..997a6220c 100644 --- a/src/net/tmwa/buysellhandler.cpp +++ b/src/net/tmwa/buysellhandler.cpp @@ -24,9 +24,9 @@ #include "actorspritemanager.h" #include "configuration.h" -#include "depricatedevent.h" #include "inventory.h" #include "localplayer.h" +#include "notifymanager.h" #include "playerinfo.h" #include "gui/buydialog.h" @@ -130,17 +130,17 @@ void BuySellHandler::processNpcSellResponse(Net::MessageIn &msg) switch (msg.readInt8()) { case 0: - SERVER_NOTICE(_("Thanks for selling.")) + NotifyManager::notify(NotifyManager::SOLD); break; case 1: default: - SERVER_NOTICE(_("Unable to sell.")) + NotifyManager::notify(NotifyManager::SELL_FAILED); break; case 2: - SERVER_NOTICE(_("Unable to sell while trading.")) + NotifyManager::notify(NotifyManager::SELL_TRADE_FAILED); break; case 3: - SERVER_NOTICE(_("Unable to sell unsellable item.")) + NotifyManager::notify(NotifyManager::SELL_UNSELLABLE_FAILED); break; } } -- cgit v1.2.3-60-g2f50