diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-09-17 11:50:28 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-09-17 11:50:28 +0300 |
commit | 616ab2676cc932ab59152c510d584c429090987a (patch) | |
tree | 9184b8836b51a073f67ee60a46043084687207a7 /src/net/tmwa/inventoryhandler.cpp | |
parent | 4b397f4c8e2b0c8d636cc2782d9571567473975b (diff) | |
download | manaplus-616ab2676cc932ab59152c510d584c429090987a.tar.gz manaplus-616ab2676cc932ab59152c510d584c429090987a.tar.bz2 manaplus-616ab2676cc932ab59152c510d584c429090987a.tar.xz manaplus-616ab2676cc932ab59152c510d584c429090987a.zip |
Remove getter for serverFeatures.
Diffstat (limited to 'src/net/tmwa/inventoryhandler.cpp')
-rw-r--r-- | src/net/tmwa/inventoryhandler.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/net/tmwa/inventoryhandler.cpp b/src/net/tmwa/inventoryhandler.cpp index a1eb1b159..359326e31 100644 --- a/src/net/tmwa/inventoryhandler.cpp +++ b/src/net/tmwa/inventoryhandler.cpp @@ -267,7 +267,7 @@ void InventoryHandler::processPlayerEquipment(Net::MessageIn &msg) index, itemId, itemType, identified); } - if (!Net::getServerFeatures()->haveItemColors() && identified > 1) + if (!serverFeatures->haveItemColors() && identified > 1) identified = 1; if (inventory) @@ -338,7 +338,7 @@ void InventoryHandler::processPlayerInventoryAdd(Net::MessageIn &msg) if (item && item->getId() == itemId) amount += item->getQuantity(); - if (!Net::getServerFeatures()->haveItemColors() && identified > 1) + if (!serverFeatures->haveItemColors() && identified > 1) identified = 1; inventory->setItem(index, itemId, amount, refine, @@ -388,7 +388,7 @@ void InventoryHandler::processPlayerInventory(Net::MessageIn &msg) cards[0], cards[1], cards[2], cards[3]); } - if (!Net::getServerFeatures()->haveItemColors() && identified > 1) + if (!serverFeatures->haveItemColors() && identified > 1) identified = 1; // Trick because arrows are not considered equipment @@ -431,7 +431,7 @@ void InventoryHandler::processPlayerStorage(Net::MessageIn &msg) cards[0], cards[1], cards[2], cards[3]); } - if (!Net::getServerFeatures()->haveItemColors() && identified > 1) + if (!serverFeatures->haveItemColors() && identified > 1) identified = 1; mInventoryItems.push_back(Ea::InventoryItem(index, itemId, @@ -499,7 +499,7 @@ void InventoryHandler::processPlayerStorageEquip(Net::MessageIn &msg) static_cast<unsigned int>(refine)); } - if (!Net::getServerFeatures()->haveItemColors() && identified > 1U) + if (!serverFeatures->haveItemColors() && identified > 1U) identified = 1U; mInventoryItems.push_back(Ea::InventoryItem(index, @@ -530,7 +530,7 @@ void InventoryHandler::processPlayerStorageAdd(Net::MessageIn &msg) { if (mStorage) { - if (!Net::getServerFeatures()->haveItemColors() && identified > 1) + if (!serverFeatures->haveItemColors() && identified > 1) identified = 1; mStorage->setItem(index, itemId, amount, |