[7440] Use server-side only zone info. Optimize related calles in case zone and subzone use. Author: VladimirMangos
This in some cases make some zones not explorable if it not have server side data in current maps
but not allow cheating with zone set from client.
--HG--
branch : trunk
This commit is contained in:
1 parent
5286f2351f
commit
6e29ab4fbb
15 files changed
+107
-67
No files matched your search
+2
-2
@@ -687,8 +687,8 @@ bool ChatHandler::HandleGPSCommand(const char* args)
|
||||
CellPair cell_val = Trinity::ComputeCellPair(obj->GetPositionX(), obj->GetPositionY());
|
||||
Cell cell(cell_val);
|
||||
|
||||
uint32 zone_id = obj->GetZoneId();
|
||||
uint32 area_id = obj->GetAreaId();
|
||||
uint32 zone_id, area_id;
|
||||
obj->GetZoneAndAreaId(zone_id,area_id);
|
||||
|
||||
MapEntry const* mapEntry = sMapStore.LookupEntry(obj->GetMapId());
|
||||
AreaTableEntry const* zoneEntry = GetAreaEntryByAreaID(zone_id);
|
||||
|
||||
Reference in new issue
Block a user