summaryrefslogtreecommitdiff
path: root/src/being/localplayer.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-05-01 19:49:57 +0300
committerAndrei Karas <akaras@inbox.ru>2017-05-01 19:49:57 +0300
commitf06f491e3f9a5c47b98ec136c8eee7789152ce32 (patch)
tree4d4ab5fa3fdd2cf5483938a8208152f5f53d35b9 /src/being/localplayer.cpp
parenteb7382cbe4c699a907ced9f2a0e6631381e74673 (diff)
downloadplus-f06f491e3f9a5c47b98ec136c8eee7789152ce32.tar.gz
plus-f06f491e3f9a5c47b98ec136c8eee7789152ce32.tar.bz2
plus-f06f491e3f9a5c47b98ec136c8eee7789152ce32.tar.xz
plus-f06f491e3f9a5c47b98ec136c8eee7789152ce32.zip
Remove ServerFeatures haveAttackDirections because it depend only on server type.
Diffstat (limited to 'src/being/localplayer.cpp')
-rw-r--r--src/being/localplayer.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/being/localplayer.cpp b/src/being/localplayer.cpp
index 3f31a7c15..81eb8f2c1 100644
--- a/src/being/localplayer.cpp
+++ b/src/being/localplayer.cpp
@@ -797,7 +797,8 @@ void LocalPlayer::attack(Being *const target, const bool keep,
return;
}
- if (!serverFeatures->haveAttackDirections())
+#ifdef TMWA_SUPPORT
+ if (Net::getNetworkType() == ServerType::TMWATHENA)
{
if (abs(dist_y) >= abs(dist_x))
{
@@ -814,6 +815,7 @@ void LocalPlayer::attack(Being *const target, const bool keep,
setDirection(BeingDirection::LEFT);
}
}
+#endif // TMWA_SUPPORT
mActionTime = tick_time;