From 8a458bbf5bc6fcfa66d6e96e0dea1ec20b2fd0d9 Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Sun, 16 Nov 2008 16:21:37 +0100 Subject: Got rid of CVS/Subversion $Id$ markers I don't know why we dealt with these things for so long. Did we ever get anything out of it? --- src/net/buysellhandler.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/net/buysellhandler.cpp') diff --git a/src/net/buysellhandler.cpp b/src/net/buysellhandler.cpp index 26261664..5eb76a46 100644 --- a/src/net/buysellhandler.cpp +++ b/src/net/buysellhandler.cpp @@ -17,8 +17,6 @@ * You should have received a copy of the GNU General Public License * along with The Mana World; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - * $Id$ */ #include "buysellhandler.h" -- cgit v1.2.3-70-g09d2 From 074236254a3e648914142e21a53b41fbc35e58d8 Mon Sep 17 00:00:00 2001 From: Ira Rice Date: Sat, 22 Nov 2008 01:56:05 +0000 Subject: While there is still a small visual artifact, this patch fixes the buy window so that it properly reports how much money you have. --- src/net/buysellhandler.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/net/buysellhandler.cpp') 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; -- cgit v1.2.3-70-g09d2