InVWater converted to xyz_location

This commit is contained in:
Arthur Ice 2014-11-26 19:37:32 -08:00
parent ef18458480
commit 5140e6fabf
2 changed files with 2 additions and 3 deletions

View File

@ -21,8 +21,7 @@ bool WaterMapV2::InWater(const xyz_location& location) const {
return ReturnRegionType(location) == RegionTypeWater;
}
bool WaterMapV2::InVWater(float y, float x, float z) const {
auto location = xyz_location(x, y, z);
bool WaterMapV2::InVWater(const xyz_location& location) const {
return ReturnRegionType(location) == RegionTypeVWater;
}

View File

@ -14,7 +14,7 @@ public:
virtual WaterRegionType ReturnRegionType(const xyz_location& location) const;
virtual bool InWater(const xyz_location& location) const;
virtual bool InVWater(float y, float x, float z) const;
virtual bool InVWater(const xyz_location& location) const;
virtual bool InLava(float y, float x, float z) const;
virtual bool InLiquid(float y, float x, float z) const;