summaryrefslogtreecommitdiff
path: root/src/gui/shopwindow.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-04-14 11:27:04 +0300
committerAndrei Karas <akaras@inbox.ru>2013-04-14 12:34:23 +0300
commita7d7346b9eb3fa62a8912e31d5c00f8e05390425 (patch)
treeba2d006e8aaac74138eb13ba458d30abf8f01182 /src/gui/shopwindow.cpp
parent9569f124d176b4220f28f9a41812c33883737228 (diff)
downloadmanaverse-a7d7346b9eb3fa62a8912e31d5c00f8e05390425.tar.gz
manaverse-a7d7346b9eb3fa62a8912e31d5c00f8e05390425.tar.bz2
manaverse-a7d7346b9eb3fa62a8912e31d5c00f8e05390425.tar.xz
manaverse-a7d7346b9eb3fa62a8912e31d5c00f8e05390425.zip
some more style fixes from cpplint.
Diffstat (limited to 'src/gui/shopwindow.cpp')
-rw-r--r--src/gui/shopwindow.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/gui/shopwindow.cpp b/src/gui/shopwindow.cpp
index bc6ca117d..ea037b93b 100644
--- a/src/gui/shopwindow.cpp
+++ b/src/gui/shopwindow.cpp
@@ -250,7 +250,7 @@ void ShopWindow::action(const gcn::ActionEvent &event)
if (!inv)
return;
- //+++ need support for colors
+ // +++ need support for colors
Item *const item = inv->findItem(mSelectedItem, 0);
if (item)
{
@@ -377,7 +377,7 @@ void ShopWindow::loadList()
if (tokens.size() == 5 && tokens[0])
{
- //+++ need impliment colors?
+ // +++ need impliment colors?
if (tokens[1] && tokens[2] && mBuyShopItems)
{
mBuyShopItems->addItem(
@@ -556,7 +556,7 @@ void ShopWindow::giveList(const std::string &nick, const int mode)
if (mode == SELL)
{
- //+++ need support for colors
+ // +++ need support for colors
const Item *const item2 = inv->findItem(item->getId(), 0);
if (item2)
{
@@ -651,12 +651,12 @@ void ShopWindow::showList(const std::string &nick, std::string data) const
const int id = decodeStr(data.substr(f, 2));
const int price = decodeStr(data.substr(f + 2, 4));
int amount = decodeStr(data.substr(f + 6, 3));
- //+++ need impliment colors?
+ // +++ need impliment colors?
if (buyDialog && amount > 0)
buyDialog->addItem(id, 1, amount, price);
if (sellDialog)
{
- //+++ need support for colors
+ // +++ need support for colors
const Item *const item = inv->findItem(id, 0);
if (item)
{
@@ -723,12 +723,12 @@ void ShopWindow::processRequest(std::string nick, std::string data,
amount = atoi(part3.c_str());
delete mTradeItem;
- //+++ need impliment colors?
+ // +++ need impliment colors?
mTradeItem = new ShopItem(-1, id, 1, amount, price);
if (mode == BUY)
{
- //+++ need support for colors
+ // +++ need support for colors
const Item *const item2 = inv->findItem(mTradeItem->getId(), 0);
if (!item2 || item2->getQuantity() < amount
|| !findShopItem(mTradeItem, SELL))