summaryrefslogtreecommitdiff
path: root/src/being/localplayer.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-05-01 00:58:18 +0300
committerAndrei Karas <akaras@inbox.ru>2017-05-01 00:58:18 +0300
commit618eb708d5ca59039cb978099c7606760a5fca5b (patch)
treed595d90f07e078cf3022fd98a830108e2034e5da /src/being/localplayer.cpp
parent873d1fdb25b495633a45915f7f1dd6643cc807c8 (diff)
downloadManaVerse-618eb708d5ca59039cb978099c7606760a5fca5b.tar.gz
ManaVerse-618eb708d5ca59039cb978099c7606760a5fca5b.tar.bz2
ManaVerse-618eb708d5ca59039cb978099c7606760a5fca5b.tar.xz
ManaVerse-618eb708d5ca59039cb978099c7606760a5fca5b.zip
Remove ServerFeatures haveBrokenAttackDistance because it depend only on server type.
Diffstat (limited to 'src/being/localplayer.cpp')
-rw-r--r--src/being/localplayer.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/being/localplayer.cpp b/src/being/localplayer.cpp
index f3ec36a14..730421b70 100644
--- a/src/being/localplayer.cpp
+++ b/src/being/localplayer.cpp
@@ -1285,8 +1285,8 @@ void LocalPlayer::moveToTarget(int dist)
dist = settings.moveToTargetType;
if (dist != 0)
{
- const bool broken = serverFeatures
- ->haveBrokenPlayerAttackDistance();
+ const bool broken = (Net::getNetworkType() ==
+ ServerType::TMWATHENA);
switch (dist)
{
case 10:
@@ -2254,8 +2254,7 @@ void LocalPlayer::attack2(Being *const target, const bool keep,
if (!dontChangeEquipment && target)
changeEquipmentBeforeAttack(target);
- const bool broken = serverFeatures
- ->haveBrokenPlayerAttackDistance();
+ const bool broken = (Net::getNetworkType() == ServerType::TMWATHENA);
// probably need cache getPathLength(target)
if ((!target || settings.attackType == 0 || settings.attackType == 3)