From f06f491e3f9a5c47b98ec136c8eee7789152ce32 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 1 May 2017 19:49:57 +0300 Subject: Remove ServerFeatures haveAttackDirections because it depend only on server type. --- src/being/localplayer.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/being/localplayer.cpp') 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; -- cgit v1.2.3-70-g09d2