mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 19:37:02 +00:00
[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:
parent
818687444f
commit
7e89da0bbe
2 changed files with 5 additions and 1 deletions
|
|
@ -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());
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "12667"
|
||||
#define REVISION_NR "12668"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue