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/being/localplayer.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/being/localplayer.cpp') diff --git a/src/being/localplayer.cpp b/src/being/localplayer.cpp index 23a8063ca..30e323d7e 100644 --- a/src/being/localplayer.cpp +++ b/src/being/localplayer.cpp @@ -334,7 +334,7 @@ void LocalPlayer::slowLogic() weightNoticeTime = 0; } - if (!Net::getServerFeatures()->havePlayerStatusUpdate() + if (!serverFeatures->havePlayerStatusUpdate() && mEnableAdvert && !mBlockAdvert && mAdvertTime < cur_time) @@ -858,7 +858,7 @@ void LocalPlayer::pickedUp(const ItemInfo &itemInfo, const int amount, else { std::string str; - if (Net::getServerFeatures()->haveItemColors()) + if (serverFeatures->haveItemColors()) str = itemInfo.getName(color); else str = itemInfo.getName(); @@ -1117,7 +1117,7 @@ void LocalPlayer::moveToTarget(int dist) dist = settings.moveToTargetType; if (dist != 0) { - const bool broken = Net::getServerFeatures() + const bool broken = serverFeatures ->haveBrokenPlayerAttackDistance(); switch (dist) { @@ -2745,7 +2745,7 @@ void LocalPlayer::attack2(Being *const target, const bool keep, if (!dontChangeEquipment && target) changeEquipmentBeforeAttack(target); - const bool broken = Net::getServerFeatures() + const bool broken = serverFeatures ->haveBrokenPlayerAttackDistance(); // probably need cache getPathLength(target) @@ -3226,7 +3226,7 @@ bool LocalPlayer::checAttackPermissions(const Being *const target) void LocalPlayer::updateStatus() const { - if (Net::getServerFeatures()->havePlayerStatusUpdate() && mEnableAdvert) + if (serverFeatures->havePlayerStatusUpdate() && mEnableAdvert) { uint8_t status = 0; if (mTradebot && shopWindow && !shopWindow->isShopEmpty()) -- cgit v1.2.3-70-g09d2