mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 19:37:02 +00:00
[7114] Code cleanups.
Remove redundant `inline` for in-class function definitions. Fixed float -> int implicit casts.
This commit is contained in:
parent
9fba64aeae
commit
9e590f7ceb
22 changed files with 82 additions and 83 deletions
|
|
@ -45,18 +45,18 @@ class MANGOS_DLL_DECL MapManager : public MaNGOS::Singleton<MapManager, MaNGOS::
|
|||
Map const* GetBaseMap(uint32 id) const { return const_cast<MapManager*>(this)->_GetBaseMap(id); }
|
||||
void DeleteInstance(uint32 mapid, uint32 instanceId);
|
||||
|
||||
inline uint16 GetAreaFlag(uint32 mapid, float x, float y, float z) const
|
||||
uint16 GetAreaFlag(uint32 mapid, float x, float y, float z) const
|
||||
{
|
||||
Map const* m = GetBaseMap(mapid);
|
||||
return m->GetAreaFlag(x, y, z);
|
||||
}
|
||||
inline uint32 GetAreaId(uint32 mapid, float x, float y, float z) { return Map::GetAreaId(GetAreaFlag(mapid, x, y, z),mapid); }
|
||||
inline uint32 GetZoneId(uint32 mapid, float x, float y, float z) { return Map::GetZoneId(GetAreaFlag(mapid, x, y, z),mapid); }
|
||||
uint32 GetAreaId(uint32 mapid, float x, float y, float z) const { return Map::GetAreaId(GetAreaFlag(mapid, x, y, z),mapid); }
|
||||
uint32 GetZoneId(uint32 mapid, float x, float y, float z) const { return Map::GetZoneId(GetAreaFlag(mapid, x, y, z),mapid); }
|
||||
|
||||
void Initialize(void);
|
||||
void Update(time_t);
|
||||
|
||||
inline void SetGridCleanUpDelay(uint32 t)
|
||||
void SetGridCleanUpDelay(uint32 t)
|
||||
{
|
||||
if( t < MIN_GRID_DELAY )
|
||||
i_gridCleanUpDelay = MIN_GRID_DELAY;
|
||||
|
|
@ -64,7 +64,7 @@ class MANGOS_DLL_DECL MapManager : public MaNGOS::Singleton<MapManager, MaNGOS::
|
|||
i_gridCleanUpDelay = t;
|
||||
}
|
||||
|
||||
inline void SetMapUpdateInterval(uint32 t)
|
||||
void SetMapUpdateInterval(uint32 t)
|
||||
{
|
||||
if( t > MIN_MAP_UPDATE_DELAY )
|
||||
t = MIN_MAP_UPDATE_DELAY;
|
||||
|
|
@ -106,7 +106,7 @@ class MANGOS_DLL_DECL MapManager : public MaNGOS::Singleton<MapManager, MaNGOS::
|
|||
|
||||
bool CanPlayerEnter(uint32 mapid, Player* player);
|
||||
void RemoveBonesFromMap(uint32 mapid, uint64 guid, float x, float y);
|
||||
inline uint32 GenerateInstanceId() { return ++i_MaxInstanceId; }
|
||||
uint32 GenerateInstanceId() { return ++i_MaxInstanceId; }
|
||||
void InitMaxInstanceId();
|
||||
|
||||
/* statistics */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue