@@ -24,7 +24,7 @@ FollowOwnerGoal::FollowOwnerGoal(TamableAnimal *tamable, float speed, float star
|
||||
|
||||
bool FollowOwnerGoal::canUse()
|
||||
{
|
||||
std::shared_ptr<Mob> owner = tamable->getOwner();
|
||||
shared_ptr<Mob> owner = tamable->getOwner();
|
||||
if (owner == NULL) return false;
|
||||
if (tamable->isSitting()) return false;
|
||||
if (tamable->distanceToSqr(owner) < startDistance * startDistance) return false;
|
||||
|
||||
Reference in New Issue
Block a user