summaryrefslogtreecommitdiff
path: root/src/actormanager.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-22 21:59:47 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-22 21:59:47 +0300
commit8bc005b59bd27533a19354318e17a5cb5cfa09c5 (patch)
treef2c7357610554a414b3ce61bd151f1e9976290f2 /src/actormanager.cpp
parent4545b34b1533657d58788285a38b5128f49070a8 (diff)
downloadManaVerse-8bc005b59bd27533a19354318e17a5cb5cfa09c5.tar.gz
ManaVerse-8bc005b59bd27533a19354318e17a5cb5cfa09c5.tar.bz2
ManaVerse-8bc005b59bd27533a19354318e17a5cb5cfa09c5.tar.xz
ManaVerse-8bc005b59bd27533a19354318e17a5cb5cfa09c5.zip
Add pet actor type. For now it works almost same like monsters.
Diffstat (limited to 'src/actormanager.cpp')
-rw-r--r--src/actormanager.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/actormanager.cpp b/src/actormanager.cpp
index 0f30fa215..18f9ff211 100644
--- a/src/actormanager.cpp
+++ b/src/actormanager.cpp
@@ -245,7 +245,10 @@ Being *ActorManager::createBeing(const int id,
Being *const being = new Being(id, type, subtype, mMap);
mActors.insert(being);
- if (type == ActorType::Player || type == ActorType::Npc)
+ if (type == ActorType::Player
+ || type == ActorType::Npc
+ || type == ActorType::Mercenary
+ || type == ActorType::Pet)
{
being->updateFromCache();
beingHandler->requestNameById(id);