Will no longer use bestz snapping every frame if a navmesh is available. Fix for inliquid

This commit is contained in:
KimLS
2016-01-16 20:35:18 -08:00
parent a2136e5ee4
commit 14b9b22ca3
6 changed files with 9 additions and 33 deletions
+2 -1
View File
@@ -30,7 +30,8 @@ bool WaterMapV2::InLava(const glm::vec3& location) const {
}
bool WaterMapV2::InLiquid(const glm::vec3& location) const {
return InWater(location) || InLava(location);
auto rtype = ReturnRegionType(location);
return rtype == RegionTypeWater || rtype == RegionTypeLava || rtype == RegionTypeVWater;
}
bool WaterMapV2::Load(FILE *fp) {