diff options
author | megamage <none@none> | 2009-03-11 16:17:37 -0600 |
---|---|---|
committer | megamage <none@none> | 2009-03-11 16:17:37 -0600 |
commit | 6e29ab4fbbb6b0fb0270d73120871ff5336d784f (patch) | |
tree | 7a3620ea5f9986f2cd3e0a262e7c7c808119cbf3 /src/game/Level1.cpp | |
parent | 5286f2351f20b449921140d088b6eae6ef62a242 (diff) |
[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
Diffstat (limited to 'src/game/Level1.cpp')
-rw-r--r-- | src/game/Level1.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/Level1.cpp b/src/game/Level1.cpp index 346547e0c4b..bcb2d5d2525 100644 --- a/src/game/Level1.cpp +++ b/src/game/Level1.cpp @@ -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); |