diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-10-12 01:24:03 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-10-12 01:24:03 +0300 |
commit | e72cfb920d15b8962a02f87b90442a88d521ab49 (patch) | |
tree | b61ab11516e54d513a94ad8ddb17e61ad415d933 /src/actormanager.cpp | |
parent | 05b86a3a42187a3de25c6d0219e54c7b2f8cfcf3 (diff) | |
download | plus-e72cfb920d15b8962a02f87b90442a88d521ab49.tar.gz plus-e72cfb920d15b8962a02f87b90442a88d521ab49.tar.bz2 plus-e72cfb920d15b8962a02f87b90442a88d521ab49.tar.xz plus-e72cfb920d15b8962a02f87b90442a88d521ab49.zip |
Add server feature for request monster names.
This need if monster have name not from monsters.xml.
Diffstat (limited to 'src/actormanager.cpp')
-rw-r--r-- | src/actormanager.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/actormanager.cpp b/src/actormanager.cpp index d920d63ac..ae57b4d6d 100644 --- a/src/actormanager.cpp +++ b/src/actormanager.cpp @@ -50,6 +50,7 @@ #include "net/charserverhandler.h" #include "net/packetlimiter.h" #include "net/playerhandler.h" +#include "net/serverfeatures.h" #include "resources/iteminfo.h" @@ -253,6 +254,11 @@ Being *ActorManager::createBeing(const int id, if (localPlayer) localPlayer->checkNewName(being); } + else if (type == ActorType::Monster) + { + if (serverFeatures->haveMonsterName()) + beingHandler->requestNameById(id); + } else if (type == ActorType::Portal) { beingHandler->requestNameById(id); |