2712 float helper = std::fabs(ground -
z) <= std::fabs(floor -
z) ? ground :
floor;
2722 if (res && liquid_status.
level > helper)
2724 if (liquid_status.
level >
z)
2727 return std::fabs(liquid_status.
level -
z) <= std::fabs(helper -
z) ? liquid_status.
level : helper;
Map * GetMap() const
Definition: Object.h:543
static Vector3int16 floor(const Vector3 &v)
float GetHeight(float x, float y, float z, bool checkVMap=true, float maxSearchDist=DEFAULT_HEIGHT_SEARCH) const
Definition: Map.cpp:2314
uint32 GetPhaseMask() const
Definition: Object.h:461
G3D::int16 z
Definition: Vector3int16.h:46
#define MAP_ALL_LIQUIDS
Definition: Map.h:146
float level
Definition: Map.h:155
G3D::int16 y
Definition: Vector2int16.h:38
ZLiquidStatus
Definition: Map.h:131
G3D::int16 x
Definition: Vector2int16.h:37
#define MAX_HEIGHT
Definition: Map.h:247
ZLiquidStatus getLiquidStatus(float x, float y, float z, uint8 ReqLiquidType, LiquidData *data=nullptr) const
Definition: Map.cpp:2497
Unit * ToUnit()
Definition: Object.h:197