summaryrefslogtreecommitdiff
path: root/src/being/being.cpp
diff options
context:
space:
mode:
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
{