diff options
author | maximius <none@none> | 2009-10-31 16:00:47 -0700 |
---|---|---|
committer | maximius <none@none> | 2009-10-31 16:00:47 -0700 |
commit | 743578b81f297734162785fe2e2daa32eb5d8aad (patch) | |
tree | 077059ac516c9cbf404ea69aacf39b488e24637d /src/game/Map.h | |
parent | f5696bcca519a64c9d2ef3fcc365a52ead99e03b (diff) |
*Reinit the iterator in each loop as the iter is removed from the list, in AuctionHouseObject::Update, by Trazom
*No longer disregard z/o in Map::CreatureRelocation, thanks Sisif
*Cleanup, and make Divine Storm default to m_caster is no unitTarget is available
*Some mtmaps optimization
--HG--
branch : trunk
Diffstat (limited to 'src/game/Map.h')
-rw-r--r-- | src/game/Map.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/game/Map.h b/src/game/Map.h index 5bd7e4d4c30..783683d6d75 100644 --- a/src/game/Map.h +++ b/src/game/Map.h @@ -293,15 +293,15 @@ class MANGOS_DLL_SPEC Map : public GridRefManager<NGridType>, public MaNGOS::Obj //function for setting up visibility distance for maps on per-type/per-Id basis virtual void InitVisibilityDistance(); - void PlayerRelocation(Player *, float x, float y, float z, float angl); - void CreatureRelocation(Creature *creature, float x, float y, float, float); + void PlayerRelocation(Player *, float x, float y, float z, float orientation); + void CreatureRelocation(Creature *creature, float x, float y, float z, float ang); template<class LOCK_TYPE, class T, class CONTAINER> void Visit(const CellLock<LOCK_TYPE> &cell, TypeContainerVisitor<T, CONTAINER> &visitor); bool IsRemovalGrid(float x, float y) const { GridPair p = Trinity::ComputeGridPair(x, y); - return( !getNGrid(p.x_coord, p.y_coord) || getNGrid(p.x_coord, p.y_coord)->GetGridState() == GRID_STATE_REMOVAL ); + return !getNGrid(p.x_coord, p.y_coord) || getNGrid(p.x_coord, p.y_coord)->GetGridState() == GRID_STATE_REMOVAL; } bool GetUnloadLock(const GridPair &p) const { return getNGrid(p.x_coord, p.y_coord)->getUnloadLock(); } @@ -312,7 +312,7 @@ class MANGOS_DLL_SPEC Map : public GridRefManager<NGridType>, public MaNGOS::Obj void ResetGridExpiry(NGridType &grid, float factor = 1) const { - grid.ResetTimeTracker((time_t)((float)i_gridExpiry*factor)); + grid.ResetTimeTracker(time_t(float(i_gridExpiry)*factor)); } time_t GetGridExpiry(void) const { return i_gridExpiry; } |