summaryrefslogtreecommitdiff
path: root/src/net/tmwa/buysellhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-03-08 22:25:23 +0300
committerAndrei Karas <akaras@inbox.ru>2013-03-08 23:44:33 +0300
commit6328313a6d8a76b4d38a82f6f4dcef350c695704 (patch)
treefd2aba6ed0af90547f0805b335a461bda555a170 /src/net/tmwa/buysellhandler.cpp
parentdcd0d2e4d8a827d06a10344855d8d044bd26630d (diff)
downloadManaVerse-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/tmwa/buysellhandler.cpp')
-rw-r--r--src/net/tmwa/buysellhandler.cpp10
1 files changed, 5 insertions, 5 deletions
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;
}
}