Revert "dynamic_pointer_cast -> std::dynamic_pointer_cast"
This reverts commit 07ad68bc15.
This commit is contained in:
@@ -186,7 +186,7 @@ int Ozelot::getDeathLoot()
|
||||
|
||||
bool Ozelot::doHurtTarget(std::shared_ptr<Entity> target)
|
||||
{
|
||||
return target->hurt(DamageSource::mobAttack(std::dynamic_pointer_cast<Mob>(shared_from_this())), 3);
|
||||
return target->hurt(DamageSource::mobAttack(dynamic_pointer_cast<Mob>(shared_from_this())), 3);
|
||||
}
|
||||
|
||||
bool Ozelot::hurt(DamageSource *source, int dmg)
|
||||
@@ -280,7 +280,7 @@ bool Ozelot::canMate(std::shared_ptr<Animal> animal)
|
||||
if (animal == shared_from_this()) return false;
|
||||
if (!isTame()) return false;
|
||||
|
||||
std::shared_ptr<Ozelot> partner = std::dynamic_pointer_cast<Ozelot>(animal);
|
||||
std::shared_ptr<Ozelot> partner = dynamic_pointer_cast<Ozelot>(animal);
|
||||
if (partner == NULL) return false;
|
||||
if (!partner->isTame()) return false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user