mirror of
https://github.com/EQEmu/Server.git
synced 2026-03-11 15:22:26 +00:00
InLiquid converted to xyz_location
This commit is contained in:
parent
2f203fa6bb
commit
4094d43c49
@ -29,8 +29,7 @@ bool WaterMapV2::InLava(const xyz_location& location) const {
|
|||||||
return ReturnRegionType(location) == RegionTypeLava;
|
return ReturnRegionType(location) == RegionTypeLava;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool WaterMapV2::InLiquid(float y, float x, float z) const {
|
bool WaterMapV2::InLiquid(const xyz_location& location) const {
|
||||||
auto location = xyz_location(x, y, z);
|
|
||||||
return InWater(location) || InLava(location);
|
return InWater(location) || InLava(location);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -16,7 +16,7 @@ public:
|
|||||||
virtual bool InWater(const xyz_location& location) const;
|
virtual bool InWater(const xyz_location& location) const;
|
||||||
virtual bool InVWater(const xyz_location& location) const;
|
virtual bool InVWater(const xyz_location& location) const;
|
||||||
virtual bool InLava(const xyz_location& location) const;
|
virtual bool InLava(const xyz_location& location) const;
|
||||||
virtual bool InLiquid(float y, float x, float z) const;
|
virtual bool InLiquid(const xyz_location& location) const;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual bool Load(FILE *fp);
|
virtual bool Load(FILE *fp);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user