summaryrefslogtreecommitdiffstats
path: root/src/Mobs/Path.h
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2015-05-03 11:51:09 +0200
committerMattes D <github@xoft.cz>2015-05-03 11:51:09 +0200
commitd757d75b6c5e1e8e604b544d73e6292a09781b1a (patch)
tree97167cb6cee1137db10569875158dd3e65aa5e73 /src/Mobs/Path.h
parentFixed multiple mbedtls inclusion. (diff)
parentPathFinder - Crash fix, chunks in parameters are now references (diff)
downloadcuberite-d757d75b6c5e1e8e604b544d73e6292a09781b1a.tar
cuberite-d757d75b6c5e1e8e604b544d73e6292a09781b1a.tar.gz
cuberite-d757d75b6c5e1e8e604b544d73e6292a09781b1a.tar.bz2
cuberite-d757d75b6c5e1e8e604b544d73e6292a09781b1a.tar.lz
cuberite-d757d75b6c5e1e8e604b544d73e6292a09781b1a.tar.xz
cuberite-d757d75b6c5e1e8e604b544d73e6292a09781b1a.tar.zst
cuberite-d757d75b6c5e1e8e604b544d73e6292a09781b1a.zip
Diffstat (limited to 'src/Mobs/Path.h')
-rw-r--r--src/Mobs/Path.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Mobs/Path.h b/src/Mobs/Path.h
index 9927d0a34..1bce0ace0 100644
--- a/src/Mobs/Path.h
+++ b/src/Mobs/Path.h
@@ -52,7 +52,7 @@ public:
@param a_EndingPoint "The block where the Zombie's knees want to be".
@param a_MaxSteps The maximum steps before giving up. */
cPath(
- cChunk * a_Chunk,
+ cChunk & a_Chunk,
const Vector3d & a_StartingPoint, const Vector3d & a_EndingPoint, int a_MaxSteps,
double a_BoundingBoxWidth = 1, double a_BoundingBoxHeight = 2,
int a_MaxUp = 1, int a_MaxDown = 1
@@ -62,7 +62,7 @@ public:
~cPath();
/** Performs part of the path calculation and returns true if the path computation has finished. */
- ePathFinderStatus Step(cChunk * a_Chunk);
+ ePathFinderStatus Step(cChunk & a_Chunk);
/* Point retrieval functions, inlined for performance. */
/** Returns the next point in the path. */