summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-05-01 18:13:26 +0300
committerAndrei Karas <akaras@inbox.ru>2017-05-01 18:13:26 +0300
commit013e03f7a62c40554d0ed00c30375155557a1318 (patch)
treea3dd2140baafa761f122352b9a4b0ab2e041f783 /src
parentbfa0ffd5db38174555992c4a21274be41aad753f (diff)
downloadplus-013e03f7a62c40554d0ed00c30375155557a1318.tar.gz
plus-013e03f7a62c40554d0ed00c30375155557a1318.tar.bz2
plus-013e03f7a62c40554d0ed00c30375155557a1318.tar.xz
plus-013e03f7a62c40554d0ed00c30375155557a1318.zip
Remove ServerFeatures haveMonsterName because it depend only on server type.
Diffstat (limited to 'src')
-rw-r--r--src/actormanager.cpp6
-rw-r--r--src/net/eathena/serverfeatures.cpp5
-rw-r--r--src/net/eathena/serverfeatures.h2
-rw-r--r--src/net/serverfeatures.h2
-rw-r--r--src/net/tmwa/serverfeatures.cpp5
-rw-r--r--src/net/tmwa/serverfeatures.h2
6 files changed, 5 insertions, 17 deletions
diff --git a/src/actormanager.cpp b/src/actormanager.cpp
index 13cbeb286..114e2acd5 100644
--- a/src/actormanager.cpp
+++ b/src/actormanager.cpp
@@ -297,8 +297,12 @@ Being *ActorManager::createBeing(const BeingId id,
localPlayer->checkNewName(being);
break;
case ActorType::Monster:
- if (serverFeatures && serverFeatures->haveMonsterName())
+#ifdef TMWA_SUPPORT
+ if (Net::getNetworkType() == ServerType::EATHENA)
+#endif // TMWA_SUPPORT
+ {
beingHandler->requestNameById(id);
+ }
break;
case ActorType::Portal:
if (beingHandler &&
diff --git a/src/net/eathena/serverfeatures.cpp b/src/net/eathena/serverfeatures.cpp
index 6bf1536fd..edf86f09f 100644
--- a/src/net/eathena/serverfeatures.cpp
+++ b/src/net/eathena/serverfeatures.cpp
@@ -101,11 +101,6 @@ bool ServerFeatures::haveCharRename() const
return true;
}
-bool ServerFeatures::haveMonsterName() const
-{
- return true;
-}
-
bool ServerFeatures::haveBankApi() const
{
return true;
diff --git a/src/net/eathena/serverfeatures.h b/src/net/eathena/serverfeatures.h
index df603863d..a8394b2e6 100644
--- a/src/net/eathena/serverfeatures.h
+++ b/src/net/eathena/serverfeatures.h
@@ -52,8 +52,6 @@ class ServerFeatures final : public Net::ServerFeatures
bool haveMonsterAttackRange() const override final A_CONST;
- bool haveMonsterName() const override final A_CONST;
-
bool haveEmailOnRegister() const override final;
bool haveEmailOnDelete() const override final;
diff --git a/src/net/serverfeatures.h b/src/net/serverfeatures.h
index f211e3ea9..ed66e1b63 100644
--- a/src/net/serverfeatures.h
+++ b/src/net/serverfeatures.h
@@ -54,8 +54,6 @@ class ServerFeatures notfinal
virtual bool haveMonsterAttackRange() const = 0;
- virtual bool haveMonsterName() const = 0;
-
virtual bool haveEmailOnRegister() const = 0;
virtual bool haveEmailOnDelete() const = 0;
diff --git a/src/net/tmwa/serverfeatures.cpp b/src/net/tmwa/serverfeatures.cpp
index d0221d383..86ea22075 100644
--- a/src/net/tmwa/serverfeatures.cpp
+++ b/src/net/tmwa/serverfeatures.cpp
@@ -99,11 +99,6 @@ bool ServerFeatures::haveCharRename() const
return false;
}
-bool ServerFeatures::haveMonsterName() const
-{
- return false;
-}
-
bool ServerFeatures::haveBankApi() const
{
return false;
diff --git a/src/net/tmwa/serverfeatures.h b/src/net/tmwa/serverfeatures.h
index 1e91d6831..562a39c9e 100644
--- a/src/net/tmwa/serverfeatures.h
+++ b/src/net/tmwa/serverfeatures.h
@@ -52,8 +52,6 @@ class ServerFeatures final : public Net::ServerFeatures
bool haveMonsterAttackRange() const override final;
- bool haveMonsterName() const override final A_CONST;
-
bool haveEmailOnRegister() const override final A_CONST;
bool haveEmailOnDelete() const override final A_CONST;