mirror of
https://github.com/EQEmu/Server.git
synced 2026-03-06 06:12:29 +00:00
ReturnRegionType converted to xyz_location
This commit is contained in:
parent
f9e65acf78
commit
c0faaa9c20
@ -7633,7 +7633,7 @@ void command_bestz(Client *c, const Seperator *sep) {
|
|||||||
if(c->GetTarget()) {
|
if(c->GetTarget()) {
|
||||||
z=c->GetTarget()->GetZ();
|
z=c->GetTarget()->GetZ();
|
||||||
auto position = xyz_location(c->GetTarget()->GetX(), c->GetTarget()->GetY(), z);
|
auto position = xyz_location(c->GetTarget()->GetX(), c->GetTarget()->GetY(), z);
|
||||||
RegionType = zone->watermap->ReturnRegionType(c->GetTarget()->GetX(), c->GetTarget()->GetY(), z);
|
RegionType = zone->watermap->ReturnRegionType(position);
|
||||||
c->Message(0,"InWater returns %d", zone->watermap->InWater(position));
|
c->Message(0,"InWater returns %d", zone->watermap->InWater(position));
|
||||||
c->Message(0,"InLava returns %d", zone->watermap->InLava(c->GetTarget()->GetX(), c->GetTarget()->GetY(), z));
|
c->Message(0,"InLava returns %d", zone->watermap->InLava(c->GetTarget()->GetX(), c->GetTarget()->GetY(), z));
|
||||||
|
|
||||||
@ -7641,7 +7641,7 @@ void command_bestz(Client *c, const Seperator *sep) {
|
|||||||
else {
|
else {
|
||||||
z=c->GetZ();
|
z=c->GetZ();
|
||||||
auto position = xyz_location(c->GetX(), c->GetY(), z);
|
auto position = xyz_location(c->GetX(), c->GetY(), z);
|
||||||
RegionType = zone->watermap->ReturnRegionType(c->GetX(), c->GetY(), z);
|
RegionType = zone->watermap->ReturnRegionType(position);
|
||||||
c->Message(0,"InWater returns %d", zone->watermap->InWater(position));
|
c->Message(0,"InWater returns %d", zone->watermap->InWater(position));
|
||||||
c->Message(0,"InLava returns %d", zone->watermap->InLava(c->GetX(), c->GetY(), z));
|
c->Message(0,"InLava returns %d", zone->watermap->InLava(c->GetX(), c->GetY(), z));
|
||||||
|
|
||||||
|
|||||||
@ -25,7 +25,7 @@ public:
|
|||||||
~WaterMap() { }
|
~WaterMap() { }
|
||||||
|
|
||||||
static WaterMap* LoadWaterMapfile(std::string zone_name);
|
static WaterMap* LoadWaterMapfile(std::string zone_name);
|
||||||
virtual WaterRegionType ReturnRegionType(float y, float x, float z) const { return RegionTypeNormal; }
|
virtual WaterRegionType ReturnRegionType(const xyz_location& location) const { return RegionTypeNormal; }
|
||||||
virtual bool InWater(const xyz_location& location) const { return false; }
|
virtual bool InWater(const xyz_location& location) const { return false; }
|
||||||
virtual bool InVWater(float y, float x, float z) const { return false; }
|
virtual bool InVWater(float y, float x, float z) const { return false; }
|
||||||
virtual bool InLava(float y, float x, float z) const { return false; }
|
virtual bool InLava(float y, float x, float z) const { return false; }
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user