From 562b6ec9be6293a4bf81c72b44ff8a8d60d5fe66 Mon Sep 17 00:00:00 2001 From: Stefan Dombrowski Date: Tue, 14 Feb 2012 17:16:27 +0100 Subject: Removing NPC trade messages from chat The thanks messages got removed, because they are useless and when selling many items they completely trashed the chat. In Mana 0.5 this was already fixed, see commit 13c4a1131854887ac9ec83f80c7964f6b2949c87. Reviewed-by: Ablu --- src/net/tmwa/buysellhandler.cpp | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'src/net/tmwa') diff --git a/src/net/tmwa/buysellhandler.cpp b/src/net/tmwa/buysellhandler.cpp index 474e58cf..e6ccae56 100644 --- a/src/net/tmwa/buysellhandler.cpp +++ b/src/net/tmwa/buysellhandler.cpp @@ -111,11 +111,7 @@ void BuySellHandler::handleMessage(Net::MessageIn &msg) break; case SMSG_NPC_BUY_RESPONSE: - if (msg.readInt8() == 0) - { - SERVER_NOTICE(_("Thanks for buying.")) - } - else + if (msg.readInt8() != 0) { // Reset player money since buy dialog already assumed purchase // would go fine @@ -125,9 +121,7 @@ void BuySellHandler::handleMessage(Net::MessageIn &msg) break; case SMSG_NPC_SELL_RESPONSE: - if (msg.readInt8() == 0) - SERVER_NOTICE(_("Thanks for selling.")) - else + if (msg.readInt8() != 0) SERVER_NOTICE(_("Unable to sell.")) break; } -- cgit v1.2.3-60-g2f50