[12668] Add outcommented helper to assign zone/area to gameobject by guid

(based on commit ceb9305)

Signed-off-by: Dramacydal <PulLumBerMal@gmail.com>
This commit is contained in:
Schmoozerd 2013-08-19 16:15:08 +03:00 committed by Antz
parent 818687444f
commit 7e89da0bbe
2 changed files with 5 additions and 1 deletions

View file

@ -1557,6 +1557,10 @@ void ObjectMgr::LoadGameObjects()
if (gameEvent == 0 && GuidPoolId == 0 && EntryPoolId == 0) // if not this is to be managed by GameEvent System or Pool system
AddGameobjectToGrid(guid, &data);
//uint32 zoneId, areaId;
//sTerrainMgr.LoadTerrain(data.mapid)->GetZoneAndAreaId(zoneId, areaId, data.posX, data.posY, data.posZ);
//sLog.outErrorDb("UPDATE gameobject SET zone_id=%u, area_id=%u WHERE guid=%u;", zoneId, areaId, guid);
++count;
}
while (result->NextRow());

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "12667"
#define REVISION_NR "12668"
#endif // __REVISION_NR_H__