diff options
author | Stefan Dombrowski <stefan@uni-bonn.de> | 2012-02-14 17:16:27 +0100 |
---|---|---|
committer | Stefan Dombrowski <stefan@uni-bonn.de> | 2012-02-14 17:16:27 +0100 |
commit | 562b6ec9be6293a4bf81c72b44ff8a8d60d5fe66 (patch) | |
tree | 68ff8b73f4a9ae087bd7e876e5b8cdd6c41d57af /src/net/tmwa/buysellhandler.cpp | |
parent | 6c5362fbd4c907af8cd873df1900cef028e156af (diff) | |
download | mana-562b6ec9be6293a4bf81c72b44ff8a8d60d5fe66.tar.gz mana-562b6ec9be6293a4bf81c72b44ff8a8d60d5fe66.tar.bz2 mana-562b6ec9be6293a4bf81c72b44ff8a8d60d5fe66.tar.xz mana-562b6ec9be6293a4bf81c72b44ff8a8d60d5fe66.zip |
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
Diffstat (limited to 'src/net/tmwa/buysellhandler.cpp')
-rw-r--r-- | src/net/tmwa/buysellhandler.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
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; } |