summaryrefslogtreecommitdiff
path: root/src/being/being.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/being.cpp
parenteb7382cbe4c699a907ced9f2a0e6631381e74673 (diff)
downloadmanaplus-f06f491e3f9a5c47b98ec136c8eee7789152ce32.tar.gz
manaplus-f06f491e3f9a5c47b98ec136c8eee7789152ce32.tar.bz2
manaplus-f06f491e3f9a5c47b98ec136c8eee7789152ce32.tar.xz
manaplus-f06f491e3f9a5c47b98ec136c8eee7789152ce32.zip
Remove ServerFeatures haveAttackDirections because it depend only on server type.
Diffstat (limited to 'src/being/being.cpp')
-rw-r--r--src/being/being.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/being/being.cpp b/src/being/being.cpp
index 6ed83429e..dfb337598 100644
--- a/src/being/being.cpp
+++ b/src/being/being.cpp
@@ -69,6 +69,7 @@
#include "net/gamehandler.h"
#include "net/homunculushandler.h"
#include "net/mercenaryhandler.h"
+#include "net/net.h"
#include "net/npchandler.h"
#include "net/packetlimiter.h"
#include "net/playerhandler.h"
@@ -949,8 +950,7 @@ void Being::handleAttack(Being *restrict const victim,
reset();
mActionTime = tick_time;
- if (serverFeatures &&
- !serverFeatures->haveAttackDirections() &&
+ if (Net::getNetworkType() == ServerType::TMWATHENA &&
this != localPlayer)
{
const uint8_t dir = calcDirection(victim->mX,
@@ -1053,7 +1053,8 @@ void Being::handleSkill(Being *restrict const victim,
reset();
mActionTime = tick_time;
- if (!serverFeatures->haveAttackDirections() && this != localPlayer)
+ if (Net::getNetworkType() == ServerType::TMWATHENA &&
+ this != localPlayer)
{
const uint8_t dir = calcDirection(victim->mX,
victim->mY);