summaryrefslogtreecommitdiffstats
path: root/src/Mobs/Behaviors/BehaviorCoward.cpp
diff options
context:
space:
mode:
authorLogicParrot <LogicParrot@users.noreply.github.com>2017-09-02 00:04:33 +0200
committerLogicParrot <LogicParrot@users.noreply.github.com>2017-09-02 00:04:33 +0200
commitabf87d7922ea9fde6720d26a67e2b8460690a3f3 (patch)
treeaf431d7b6879e71243a6ad6c9aefa9f0ec80c1b1 /src/Mobs/Behaviors/BehaviorCoward.cpp
parentLambda merge fix (diff)
downloadcuberite-abf87d7922ea9fde6720d26a67e2b8460690a3f3.tar
cuberite-abf87d7922ea9fde6720d26a67e2b8460690a3f3.tar.gz
cuberite-abf87d7922ea9fde6720d26a67e2b8460690a3f3.tar.bz2
cuberite-abf87d7922ea9fde6720d26a67e2b8460690a3f3.tar.lz
cuberite-abf87d7922ea9fde6720d26a67e2b8460690a3f3.tar.xz
cuberite-abf87d7922ea9fde6720d26a67e2b8460690a3f3.tar.zst
cuberite-abf87d7922ea9fde6720d26a67e2b8460690a3f3.zip
Diffstat (limited to 'src/Mobs/Behaviors/BehaviorCoward.cpp')
-rw-r--r--src/Mobs/Behaviors/BehaviorCoward.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Mobs/Behaviors/BehaviorCoward.cpp b/src/Mobs/Behaviors/BehaviorCoward.cpp
index 55a5932cd..fc13cf5b9 100644
--- a/src/Mobs/Behaviors/BehaviorCoward.cpp
+++ b/src/Mobs/Behaviors/BehaviorCoward.cpp
@@ -40,7 +40,7 @@ bool cBehaviorCoward::ControlStarting(std::chrono::milliseconds a_Dt, cChunk & a
{
UNUSED(a_Dt);
UNUSED(a_Chunk);
- m_Parent->GetPathFinder().setDontCare(true); // We don't care we're we are going when
+ m_Parent->GetPathFinder().SetDontCare(true); // We don't care we're we are going when
// wandering. If a path is not found, the pathfinder just modifies our destination.
m_Parent->SetRelativeWalkSpeed(m_Parent->GetRelativeWalkSpeed() * 3);
return true;
@@ -52,7 +52,7 @@ bool cBehaviorCoward::ControlEnding(std::chrono::milliseconds a_Dt, cChunk & a_C
UNUSED(a_Dt);
UNUSED(a_Chunk);
m_Parent->SetRelativeWalkSpeed(m_Parent->GetRelativeWalkSpeed() / 3);
- m_Parent->GetPathFinder().setDontCare(false);
+ m_Parent->GetPathFinder().SetDontCare(false);
return true;
}