diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-02-10 23:26:53 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-02-10 23:26:53 +0300 |
commit | b81f22b9ca68675d16fa2263b89d7dd0d179ef45 (patch) | |
tree | 7a4554927636a77d5233ceffc1814eee1fdd3578 /src/gui | |
parent | f3f7879c48fe8e202c3519cd465225645949167e (diff) | |
download | manaverse-b81f22b9ca68675d16fa2263b89d7dd0d179ef45.tar.gz manaverse-b81f22b9ca68675d16fa2263b89d7dd0d179ef45.tar.bz2 manaverse-b81f22b9ca68675d16fa2263b89d7dd0d179ef45.tar.xz manaverse-b81f22b9ca68675d16fa2263b89d7dd0d179ef45.zip |
Add typed bool type Damaged.
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/windows/itemamountwindow.cpp | 3 | ||||
-rw-r--r-- | src/gui/windows/tradewindow.cpp | 4 | ||||
-rw-r--r-- | src/gui/windows/tradewindow.h | 4 |
3 files changed, 6 insertions, 5 deletions
diff --git a/src/gui/windows/itemamountwindow.cpp b/src/gui/windows/itemamountwindow.cpp index 27c72a683..b144140d2 100644 --- a/src/gui/windows/itemamountwindow.cpp +++ b/src/gui/windows/itemamountwindow.cpp @@ -336,7 +336,8 @@ void ItemAmountWindow::action(const ActionEvent &event) mItem = new Item(id, 0, 10000, 0, 1, Identified_True, - false, false, false, false); + Damaged_True, + false, false, false); if (mUsage == ShopBuyAdd) mMax = 10000; diff --git a/src/gui/windows/tradewindow.cpp b/src/gui/windows/tradewindow.cpp index b94584f4f..042c11b74 100644 --- a/src/gui/windows/tradewindow.cpp +++ b/src/gui/windows/tradewindow.cpp @@ -201,7 +201,7 @@ void TradeWindow::addItem(const int id, const uint8_t refine, const unsigned char color, const Identified identified, - const bool damaged, + const Damaged damaged, const bool favorite) const { Inventory *inv = own ? mMyInventory : mPartnerInventory; @@ -218,7 +218,7 @@ void TradeWindow::addItem2(const int id, const uint8_t refine, const unsigned char color, const Identified identified, - const bool damaged, + const Damaged damaged, const bool favorite, const bool equipment) const { diff --git a/src/gui/windows/tradewindow.h b/src/gui/windows/tradewindow.h index f48002deb..153fb0259 100644 --- a/src/gui/windows/tradewindow.h +++ b/src/gui/windows/tradewindow.h @@ -76,7 +76,7 @@ class TradeWindow final : public Window, const uint8_t refine, const unsigned char color, const Identified identified, - const bool damaged, + const Damaged damaged, const bool favorite) const; /** @@ -96,7 +96,7 @@ class TradeWindow final : public Window, const uint8_t refine, const unsigned char color, const Identified identified, - const bool damaged, + const Damaged damaged, const bool favorite, const bool equipment) const; |