diff options
author | Stefan Dombrowski <stefan@uni-bonn.de> | 2011-04-11 21:07:32 +0200 |
---|---|---|
committer | Stefan Dombrowski <stefan@uni-bonn.de> | 2011-04-11 21:07:32 +0200 |
commit | 13c4a1131854887ac9ec83f80c7964f6b2949c87 (patch) | |
tree | eff4f6cc35faed99536bd4c229ad626695e7eebf /src/net/tmwa/buysellhandler.cpp | |
parent | b38c31b289d36b2dae594e44d0e8b5e21f083dc5 (diff) | |
download | mana-13c4a1131854887ac9ec83f80c7964f6b2949c87.tar.gz mana-13c4a1131854887ac9ec83f80c7964f6b2949c87.tar.bz2 mana-13c4a1131854887ac9ec83f80c7964f6b2949c87.tar.xz mana-13c4a1131854887ac9ec83f80c7964f6b2949c87.zip |
Removing annoying NPC trade messages from chat
The thanks messages got removed, because they are useless and when
selling many items they completely trashed the chat.
The pick-up information for money now respects the configuration.
Reviewed-by: thorbjorn
Diffstat (limited to 'src/net/tmwa/buysellhandler.cpp')
-rw-r--r-- | src/net/tmwa/buysellhandler.cpp | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/src/net/tmwa/buysellhandler.cpp b/src/net/tmwa/buysellhandler.cpp index 209f034d..fae63c67 100644 --- a/src/net/tmwa/buysellhandler.cpp +++ b/src/net/tmwa/buysellhandler.cpp @@ -112,11 +112,7 @@ void BuySellHandler::handleMessage(Net::MessageIn &msg) break; case SMSG_NPC_BUY_RESPONSE: - if (msg.readInt8() == 0) - { - localChatTab->chatLog(_("Thanks for buying."), BY_SERVER); - } - else + if (msg.readInt8() != 0) { // Reset player money since buy dialog already assumed purchase // would go fine @@ -126,11 +122,8 @@ void BuySellHandler::handleMessage(Net::MessageIn &msg) break; case SMSG_NPC_SELL_RESPONSE: - if (msg.readInt8() == 0) - localChatTab->chatLog(_("Thanks for selling."), BY_SERVER); - else + if (msg.readInt8() != 0) localChatTab->chatLog(_("Unable to sell."), BY_SERVER); - break; } } |