fix(Core/Maps): Include collision height in underwater status calculations. (#4855)

This commit is contained in:
UltraNix
2021-03-21 15:19:07 +01:00
committed by GitHub
parent adf627cb65
commit 00f7a6bbde
3 changed files with 8 additions and 7 deletions

View File

@@ -208,7 +208,7 @@ public:
[[nodiscard]] float getMinHeight(float x, float y) const;
[[nodiscard]] float getLiquidLevel(float x, float y) const;
[[nodiscard]] uint8 getTerrainType(float x, float y) const;
ZLiquidStatus getLiquidStatus(float x, float y, float z, uint8 ReqLiquidType, LiquidData* data = nullptr);
ZLiquidStatus getLiquidStatus(float x, float y, float z, uint8 ReqLiquidType, float collisionHeight, LiquidData* data = nullptr);
};
// GCC have alternative #pragma pack(N) syntax and old gcc version not support pack(push, N), also any gcc version not support it at some platform