mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-20 13:21:28 +00:00
InVWater converted to xyz_location
This commit is contained in:
parent
ef18458480
commit
5140e6fabf
@ -21,8 +21,7 @@ bool WaterMapV2::InWater(const xyz_location& location) const {
|
|||||||
return ReturnRegionType(location) == RegionTypeWater;
|
return ReturnRegionType(location) == RegionTypeWater;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool WaterMapV2::InVWater(float y, float x, float z) const {
|
bool WaterMapV2::InVWater(const xyz_location& location) const {
|
||||||
auto location = xyz_location(x, y, z);
|
|
||||||
return ReturnRegionType(location) == RegionTypeVWater;
|
return ReturnRegionType(location) == RegionTypeVWater;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -14,7 +14,7 @@ public:
|
|||||||
|
|
||||||
virtual WaterRegionType ReturnRegionType(const xyz_location& location) const;
|
virtual WaterRegionType ReturnRegionType(const xyz_location& location) const;
|
||||||
virtual bool InWater(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 InLava(float y, float x, float z) const;
|
||||||
virtual bool InLiquid(float y, float x, float z) const;
|
virtual bool InLiquid(float y, float x, float z) const;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user