From 616ab2676cc932ab59152c510d584c429090987a Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 17 Sep 2014 11:50:28 +0300 Subject: Remove getter for serverFeatures. --- src/shopitem.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/shopitem.cpp') diff --git a/src/shopitem.cpp b/src/shopitem.cpp index ec79a29da..10491ef2d 100644 --- a/src/shopitem.cpp +++ b/src/shopitem.cpp @@ -42,7 +42,7 @@ ShopItem::ShopItem(const int inventoryIndex, const int id, mPrice(price), mShowQuantity(true) { - if (Net::getServerFeatures()->haveItemColors()) + if (serverFeatures->haveItemColors()) { mDisplayName = std::string(getInfo().getName(color)).append(" (") .append(Units::formatCurrency(mPrice)).append(") "); @@ -66,7 +66,7 @@ ShopItem::ShopItem(const int id, const unsigned char color, const int price) : mPrice(price), mShowQuantity(false) { - if (Net::getServerFeatures()->haveItemColors()) + if (serverFeatures->haveItemColors()) { mDisplayName = std::string(getInfo().getName(color)).append(" (") .append(Units::formatCurrency(mPrice)).append(")"); @@ -94,7 +94,7 @@ void ShopItem::update() { if (mShowQuantity) { - if (Net::getServerFeatures()->haveItemColors()) + if (serverFeatures->haveItemColors()) { mDisplayName = std::string(getInfo().getName(mColor)).append(" (") .append(Units::formatCurrency(mPrice)).append(") "); -- cgit v1.2.3-70-g09d2