From 3dc311a652d1fda1252903a974920395e56e5668 Mon Sep 17 00:00:00 2001 From: Björn Steinbrink Date: Tue, 13 Sep 2005 22:56:29 +0000 Subject: Merged with SDL_NET_TEST branch. --- src/gui/buy.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/gui/buy.cpp') diff --git a/src/gui/buy.cpp b/src/gui/buy.cpp index 926f478e..3a32824a 100644 --- a/src/gui/buy.cpp +++ b/src/gui/buy.cpp @@ -235,11 +235,11 @@ void BuyDialog::action(const std::string& eventId) // there a better way to ensure this fails in an _obivous_ way in C++? else if (eventId == "buy" && (m_amountItems > 0 && m_amountItems <= m_maxItems)) { - WFIFOW(0) = net_w_value(0x00c8); - WFIFOW(2) = net_w_value(8); - WFIFOW(4) = net_w_value(m_amountItems); - WFIFOW(6) = net_w_value(shopInventory[selectedItem].id); - WFIFOSET(8); + writeWord(0, 0x00c8); + writeWord(2, 8); + writeWord(4, m_amountItems); + writeWord(6, shopInventory[selectedItem].id); + writeSet(8); // update money ! m_money -= m_amountItems * shopInventory[selectedItem].price; -- cgit v1.2.3-70-g09d2