Skip to content

Commit

Permalink
[9260] Rewrite pool system work with dynamic data.
Browse files Browse the repository at this point in the history
Concentrate all dynamic data in single structure for future move it to Map for support pre-Map pool data store.

* This let use pool system in future in instances
* Remove main stoper to move creature/guids to per-map store tht open lot simplifcation and problem autoresolves
* This is also fix some porblems in pool-pool case work.
  • Loading branch information
VladimirMangos committed Jan 26, 2010
1 parent e57846a commit dd1f50c
Show file tree
Hide file tree
Showing 4 changed files with 152 additions and 108 deletions.
2 changes: 1 addition & 1 deletion src/game/Level2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ bool ChatHandler::HandleGameObjectTargetCommand(const char* args)
o = fields[5].GetFloat();
mapid = fields[6].GetUInt16();
pool_id = sPoolMgr.IsPartOfAPool<GameObject>(lowguid);
if (!pool_id || (pool_id && sPoolMgr.IsSpawnedObject<GameObject>(pool_id, lowguid)))
if (!pool_id || sPoolMgr.IsSpawnedObject<GameObject>(lowguid))
found = true;
} while( result->NextRow() && (!found) );

Expand Down

0 comments on commit dd1f50c

Please sign in to comment.