[7593] Map::EnsureGridLoaded related cleanups and fixes: Author: VladimirMangos
* Make generic EnsureGridLoaded function and move specialized code to LoadGrid and EnsureGridLoadedAtEnter
* Rename args to gx/gy for low-level grid numbering values.
* Remove redundent LoadMpa call after always case loading maps in EnsureGridCreated
--HG--
branch : trunk
This commit is contained in:
@@ -52,7 +52,7 @@ class TRINITY_DLL_DECL MapInstanced : public Map
|
||||
SetUnloadReferenceLock(GridPair(63-p.x_coord, 63-p.y_coord), true);
|
||||
}
|
||||
|
||||
void RemoveGridMapReference(const GridPair &p)
|
||||
void RemoveGridMapReference(GridPair const& p)
|
||||
{
|
||||
--GridMapReference[p.x_coord][p.y_coord];
|
||||
if (!GridMapReference[p.x_coord][p.y_coord])
|
||||
|
||||
Reference in New Issue
Block a user