From 69022cd939e572feadaadf1041ae7dadad782ed6 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 10 Sep 2014 23:38:11 +0300 Subject: Rename PET type into LOCAL_PET. --- src/being/actortype.h | 2 +- src/being/being.cpp | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/being') diff --git a/src/being/actortype.h b/src/being/actortype.h index f57d6662b..7603616ce 100644 --- a/src/being/actortype.h +++ b/src/being/actortype.h @@ -32,7 +32,7 @@ namespace ActorType MONSTER, FLOOR_ITEM, PORTAL, - PET, + LOCAL_PET, AVATAR }; } // namespace ActorType diff --git a/src/being/being.cpp b/src/being/being.cpp index 8baab8a44..b69ceaa4a 100644 --- a/src/being/being.cpp +++ b/src/being/being.cpp @@ -314,7 +314,7 @@ void Being::setSubtype(const uint16_t subtype, const uint8_t look) if (mInfo) setupSpriteDisplay(mInfo->getDisplay(), false); } - else if (mType == ActorType::PET) + else if (mType == ActorType::LOCAL_PET) { mInfo = PETDB::get(mId); if (mInfo) @@ -2915,7 +2915,7 @@ std::string Being::loadComment(const std::string &name, case ActorType::MONSTER: case ActorType::FLOOR_ITEM: case ActorType::PORTAL: - case ActorType::PET: + case ActorType::LOCAL_PET: case ActorType::AVATAR: default: return ""; @@ -3134,7 +3134,7 @@ void Being::addPet(const int id) } Being *const being = actorManager->createBeing( - id, ActorType::PET, 0); + id, ActorType::LOCAL_PET, 0); if (being) { being->setOwner(this); -- cgit v1.2.3-70-g09d2