summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
authorIra Rice <irarice@gmail.com>2008-11-22 01:56:05 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2008-12-03 23:26:59 +0100
commit074236254a3e648914142e21a53b41fbc35e58d8 (patch)
treebf4967874ff7aadd63f1d549b328f40f3938c5c8 /src/net
parent56de3bcc125fe6fd184e56b6e83a168d59c2d9c9 (diff)
downloadmana-client-074236254a3e648914142e21a53b41fbc35e58d8.tar.gz
mana-client-074236254a3e648914142e21a53b41fbc35e58d8.tar.bz2
mana-client-074236254a3e648914142e21a53b41fbc35e58d8.tar.xz
mana-client-074236254a3e648914142e21a53b41fbc35e58d8.zip
While there is still a small visual artifact, this patch fixes the buy
window so that it properly reports how much money you have.
Diffstat (limited to 'src/net')
-rw-r--r--src/net/buysellhandler.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/net/buysellhandler.cpp b/src/net/buysellhandler.cpp
index 5eb76a46..16cfdc06 100644
--- a/src/net/buysellhandler.cpp
+++ b/src/net/buysellhandler.cpp
@@ -114,6 +114,9 @@ void BuySellHandler::handleMessage(MessageIn *msg)
if (msg->readInt8() == 0) {
chatWindow->chatLog("Thanks for buying", BY_SERVER);
} else {
+ // Reset player money since buy dialog already assumed purchase
+ // would go fine
+ buyDialog->setMoney(player_node->mGp);
chatWindow->chatLog("Unable to buy", BY_SERVER);
}
break;