aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.World/PathfinderMob.cpp
diff options
context:
space:
mode:
authorvoid_17 <heroerror3@gmail.com>2026-03-02 17:37:16 +0700
committervoid_17 <heroerror3@gmail.com>2026-03-02 17:37:16 +0700
commit119bff351450ea16ffda550b6e0f67379b29f708 (patch)
treed9f28714afd516bc2450f33b0a77c5e05ff4de90 /Minecraft.World/PathfinderMob.cpp
parent8a2a62ea1d47364f802cf9aae97668bc4a7007b5 (diff)
Revert "shared_ptr -> std::shared_ptr"
This reverts commit 7074f35e4ba831e358117842b99ee35b87f85ae5.
Diffstat (limited to 'Minecraft.World/PathfinderMob.cpp')
-rw-r--r--Minecraft.World/PathfinderMob.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/Minecraft.World/PathfinderMob.cpp b/Minecraft.World/PathfinderMob.cpp
index da6ccd55..b72e064f 100644
--- a/Minecraft.World/PathfinderMob.cpp
+++ b/Minecraft.World/PathfinderMob.cpp
@@ -71,7 +71,7 @@ void PathfinderMob::serverAiStep()
}
else if (!holdGround && ((path == NULL && (random->nextInt(180) == 0) || fleeTime > 0) || (random->nextInt(120) == 0 || fleeTime > 0)))
{
- if(noActionTime < SharedConstants::TICKS_PER_SECOND * 5)
+ if(noActionTime < SharedConstants::TICKS_PER_SECOND * 5)
{
findRandomStrollLocation();
}
@@ -206,7 +206,7 @@ void PathfinderMob::findRandomStrollLocation(int quadrant/*=-1*/) // 4J - added
}
}
-void PathfinderMob::checkHurtTarget(std::shared_ptr<Entity> target, float d)
+void PathfinderMob::checkHurtTarget(shared_ptr<Entity> target, float d)
{
}
@@ -215,9 +215,9 @@ float PathfinderMob::getWalkTargetValue(int x, int y, int z)
return 0;
}
-std::shared_ptr<Entity> PathfinderMob::findAttackTarget()
+shared_ptr<Entity> PathfinderMob::findAttackTarget()
{
- return std::shared_ptr<Entity>();
+ return shared_ptr<Entity>();
}
@@ -240,12 +240,12 @@ void PathfinderMob::setPath(Path *path)
this->path = path;
}
-std::shared_ptr<Entity> PathfinderMob::getAttackTarget()
+shared_ptr<Entity> PathfinderMob::getAttackTarget()
{
return attackTarget;
}
-void PathfinderMob::setAttackTarget(std::shared_ptr<Entity> attacker)
+void PathfinderMob::setAttackTarget(shared_ptr<Entity> attacker)
{
attackTarget = attacker;
}