diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-09-22 21:59:47 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-09-22 21:59:47 +0300 |
commit | 8bc005b59bd27533a19354318e17a5cb5cfa09c5 (patch) | |
tree | f2c7357610554a414b3ce61bd151f1e9976290f2 /src/actormanager.cpp | |
parent | 4545b34b1533657d58788285a38b5128f49070a8 (diff) | |
download | manaplus-8bc005b59bd27533a19354318e17a5cb5cfa09c5.tar.gz manaplus-8bc005b59bd27533a19354318e17a5cb5cfa09c5.tar.bz2 manaplus-8bc005b59bd27533a19354318e17a5cb5cfa09c5.tar.xz manaplus-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.cpp | 5 |
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); |