summaryrefslogtreecommitdiffstats
path: root/src/Mobs/PathFinder.cpp
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@outlook.com>2021-04-06 17:09:16 +0200
committerTiger Wang <ziwei.tiger@outlook.com>2021-04-12 23:35:07 +0200
commit6e80f7544d786443d3028308e244b04dd8d5abcb (patch)
tree7d9cd372cefa110a4a7c14078a04e9829cba00f4 /src/Mobs/PathFinder.cpp
parentStreamline player abilities handling (diff)
downloadcuberite-6e80f7544d786443d3028308e244b04dd8d5abcb.tar
cuberite-6e80f7544d786443d3028308e244b04dd8d5abcb.tar.gz
cuberite-6e80f7544d786443d3028308e244b04dd8d5abcb.tar.bz2
cuberite-6e80f7544d786443d3028308e244b04dd8d5abcb.tar.lz
cuberite-6e80f7544d786443d3028308e244b04dd8d5abcb.tar.xz
cuberite-6e80f7544d786443d3028308e244b04dd8d5abcb.tar.zst
cuberite-6e80f7544d786443d3028308e244b04dd8d5abcb.zip
Diffstat (limited to '')
-rw-r--r--src/Mobs/PathFinder.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/Mobs/PathFinder.cpp b/src/Mobs/PathFinder.cpp
index 9e63b7362..5356cedfe 100644
--- a/src/Mobs/PathFinder.cpp
+++ b/src/Mobs/PathFinder.cpp
@@ -8,13 +8,12 @@
-cPathFinder::cPathFinder(double a_MobWidth, double a_MobHeight) :
- m_Path(),
+cPathFinder::cPathFinder(float a_MobWidth, float a_MobHeight) :
+ m_Width(a_MobWidth),
+ m_Height(a_MobHeight),
m_GiveUpCounter(0),
m_NotFoundCooldown(0)
{
- m_Width = a_MobWidth;
- m_Height = a_MobHeight;
}