summaryrefslogtreecommitdiffstats
path: root/src/Mobs/Monster.h
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-11-15 21:45:57 +0100
committerMattes D <github@xoft.cz>2014-11-15 21:45:57 +0100
commit1240e583d27c2189e50fda3f7ab63d736889abda (patch)
tree6f548d3d18179446c460ab3c7a823d130763d17f /src/Mobs/Monster.h
parentGenerator: Fixed crash with trees too high. (diff)
downloadcuberite-1240e583d27c2189e50fda3f7ab63d736889abda.tar
cuberite-1240e583d27c2189e50fda3f7ab63d736889abda.tar.gz
cuberite-1240e583d27c2189e50fda3f7ab63d736889abda.tar.bz2
cuberite-1240e583d27c2189e50fda3f7ab63d736889abda.tar.lz
cuberite-1240e583d27c2189e50fda3f7ab63d736889abda.tar.xz
cuberite-1240e583d27c2189e50fda3f7ab63d736889abda.tar.zst
cuberite-1240e583d27c2189e50fda3f7ab63d736889abda.zip
Diffstat (limited to '')
-rw-r--r--src/Mobs/Monster.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/Mobs/Monster.h b/src/Mobs/Monster.h
index f5ae2cb4d..e5dcb0309 100644
--- a/src/Mobs/Monster.h
+++ b/src/Mobs/Monster.h
@@ -169,10 +169,12 @@ protected:
/** Stores if mobile is currently moving towards the ultimate, final destination */
bool m_bMovingToDestination;
- /** Finds the first non-air block position (not the highest, as cWorld::GetHeight does)
- If current Y is nonsolid, goes down to try to find a solid block, then returns that + 1
- If current Y is solid, goes up to find first nonsolid block, and returns that */
+ /** Finds the lowest non-air block position (not the highest, as cWorld::GetHeight does)
+ If current Y is nonsolid, goes down to try to find a solid block, then returns that + 1
+ If current Y is solid, goes up to find first nonsolid block, and returns that.
+ If no suitable position is found, returns cChunkDef::Height. */
int FindFirstNonAirBlockPosition(double a_PosX, double a_PosZ);
+
/** Returns if a monster can actually reach a given height by jumping or walking */
inline bool IsNextYPosReachable(int a_PosY)
{