summaryrefslogtreecommitdiff
path: root/src/being/being.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-08-24 01:53:38 +0300
committerAndrei Karas <akaras@inbox.ru>2016-08-24 01:53:38 +0300
commit2aa9b09d4dfa139941c5a0e1e72acd11f9f4fca2 (patch)
tree383e56eb9194661c86aa6b220d069f1afacf0c79 /src/being/being.cpp
parent6a67f52f6b82bb8c6259eb0b9282ab543347b9ee (diff)
downloadmanaplus-2aa9b09d4dfa139941c5a0e1e72acd11f9f4fca2.tar.gz
manaplus-2aa9b09d4dfa139941c5a0e1e72acd11f9f4fca2.tar.bz2
manaplus-2aa9b09d4dfa139941c5a0e1e72acd11f9f4fca2.tar.xz
manaplus-2aa9b09d4dfa139941c5a0e1e72acd11f9f4fca2.zip
Remove some more local pet related code.
Diffstat (limited to 'src/being/being.cpp')
-rw-r--r--src/being/being.cpp31
1 files changed, 0 insertions, 31 deletions
diff --git a/src/being/being.cpp b/src/being/being.cpp
index f82fc4dfe..6cb9f8366 100644
--- a/src/being/being.cpp
+++ b/src/being/being.cpp
@@ -207,7 +207,6 @@ Being::Being(const BeingId id,
mComment(),
mBuyBoard(),
mSellBoard(),
- mPets(),
mOwner(nullptr),
mSpecialParticle(nullptr),
mChat(nullptr),
@@ -339,18 +338,6 @@ Being::~Being()
delete2(mChat);
removeHorse();
- FOR_EACH (std::vector<Being*>::iterator, it, mPets)
- {
- Being *pet = *it;
- if (pet)
- {
- pet->setOwner(nullptr);
- actorManager->erase(pet);
- delete pet;
- }
- }
- mPets.clear();
-
removeAllItemsParticles();
mSpiritParticles.clear();
}
@@ -1904,13 +1891,6 @@ void Being::logic() restrict2
actorManager->destroy(this);
}
- FOR_EACH (std::vector<Being*>::iterator, it, mPets)
- {
- Being *const pet = *it;
- if (pet)
- pet->petLogic();
- }
-
const SoundInfo *restrict const sound = mNextSound.sound;
if (sound)
{
@@ -4643,17 +4623,6 @@ void Being::addEffect(const std::string &restrict name) restrict2
paths.getStringValue("sprites") + name);
}
-Being *Being::findChildPet(const BeingId id) restrict2
-{
- FOR_EACH (std::vector<Being*>::iterator, it, mPets)
- {
- Being *restrict const pet = *it;
- if (pet && pet->mId == id)
- return pet;
- }
- return nullptr;
-}
-
void Being::fixPetSpawnPos(int &restrict dstX,
int &restrict dstY) const
{