GetClosestZonePoint converted to xyz_location

This commit is contained in:
Arthur Ice
2014-12-05 17:57:07 -08:00
parent 523562c152
commit 100eca203f
3 changed files with 10 additions and 14 deletions
+1 -1
View File
@@ -121,7 +121,7 @@ void Client::Handle_OP_ZoneChange(const EQApplicationPacket *app) {
return;
}
zone_point = zone->GetClosestZonePoint(GetX(), GetY(), GetZ(), target_zone_id, this, ZONEPOINT_ZONE_RANGE);
zone_point = zone->GetClosestZonePoint(GetPosition(), target_zone_id, this, ZONEPOINT_ZONE_RANGE);
//if we didnt get a zone point, or its to a different zone,
//then we assume this is invalid.
if(!zone_point || zone_point->target_zone_id != target_zone_id) {