diff options
author | Tiger Wang <ziwei.tiger@outlook.com> | 2021-04-06 17:09:16 +0200 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@outlook.com> | 2021-04-12 23:35:07 +0200 |
commit | 6e80f7544d786443d3028308e244b04dd8d5abcb (patch) | |
tree | 7d9cd372cefa110a4a7c14078a04e9829cba00f4 /src/Mobs/PathFinder.h | |
parent | Streamline player abilities handling (diff) | |
download | cuberite-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 'src/Mobs/PathFinder.h')
-rw-r--r-- | src/Mobs/PathFinder.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Mobs/PathFinder.h b/src/Mobs/PathFinder.h index 213530b11..a4843744a 100644 --- a/src/Mobs/PathFinder.h +++ b/src/Mobs/PathFinder.h @@ -16,7 +16,7 @@ public: @param a_MobWidth The mob width. @param a_MobHeight The mob height. */ - cPathFinder(double a_MobWidth, double a_MobHeight); + cPathFinder(float a_MobWidth, float a_MobHeight); /** Updates the PathFinder's internal state and returns a waypoint. A waypoint is a coordinate which the mob can safely move to from its current position in a straight line. @@ -41,10 +41,10 @@ public: private: /** The width of the Mob which owns this PathFinder. */ - double m_Width; + float m_Width; /** The height of the Mob which owns this PathFinder. */ - double m_Height; + float m_Height; /** The current cPath instance we have. This is discarded and recreated when a path recalculation is needed. */ std::unique_ptr<cPath> m_Path; |