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/MapManager.h | |
| 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/MapManager.h')
| -rw-r--r-- | src/game/MapManager.h | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/game/MapManager.h b/src/game/MapManager.h index 6ca9305711d..143248de162 100644 --- a/src/game/MapManager.h +++ b/src/game/MapManager.h @@ -52,8 +52,18 @@ class TRINITY_DLL_DECL MapManager : public Trinity::Singleton<MapManager, Trinit Map const* m = GetBaseMap(mapid); return m->GetAreaFlag(x, y, z); } - uint32 GetAreaId(uint32 mapid, float x, float y, float z) const { return Map::GetAreaId(GetAreaFlag(mapid, x, y, z),mapid); } - uint32 GetZoneId(uint32 mapid, float x, float y, float z) const { return Map::GetZoneId(GetAreaFlag(mapid, x, y, z),mapid); } + uint32 GetAreaId(uint32 mapid, float x, float y, float z) const + { + return Map::GetAreaIdByAreaFlag(GetAreaFlag(mapid, x, y, z),mapid); + } + uint32 GetZoneId(uint32 mapid, float x, float y, float z) const + { + return Map::GetZoneIdByAreaFlag(GetAreaFlag(mapid, x, y, z),mapid); + } + void GetZoneAndAreaId(uint32& zoneid, uint32& areaid, uint32 mapid, float x, float y, float z) + { + Map::GetZoneAndAreaIdByAreaFlag(zoneid,areaid,GetAreaFlag(mapid, x, y, z),mapid); + } void Initialize(void); void Update(uint32); |
