summaryrefslogtreecommitdiff
path: root/src/actormanager.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-10-12 01:24:03 +0300
committerAndrei Karas <akaras@inbox.ru>2014-10-12 01:24:03 +0300
commite72cfb920d15b8962a02f87b90442a88d521ab49 (patch)
treeb61ab11516e54d513a94ad8ddb17e61ad415d933 /src/actormanager.cpp
parent05b86a3a42187a3de25c6d0219e54c7b2f8cfcf3 (diff)
downloadmv-e72cfb920d15b8962a02f87b90442a88d521ab49.tar.gz
mv-e72cfb920d15b8962a02f87b90442a88d521ab49.tar.bz2
mv-e72cfb920d15b8962a02f87b90442a88d521ab49.tar.xz
mv-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.cpp6
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);