mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-25 22:56:24 +00:00
refactor(Core/Common): restyle tools with astyle (#3706)
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
#include "BoundingIntervalHierarchy.h"
|
||||
|
||||
|
||||
template<class T, class BoundsFunc = BoundsTrait<T> >
|
||||
template<class T, class BoundsFunc = BoundsTrait<T>>
|
||||
class BIHWrap
|
||||
{
|
||||
template<class RayCallback>
|
||||
|
||||
@@ -50,7 +50,7 @@ static bool operator == (const GameObjectModel& mdl, const GameObjectModel& mdl2
|
||||
}
|
||||
*/
|
||||
|
||||
typedef RegularGrid2D<GameObjectModel, BIHWrap<GameObjectModel> > ParentTree;
|
||||
typedef RegularGrid2D<GameObjectModel, BIHWrap<GameObjectModel>> ParentTree;
|
||||
|
||||
struct DynTreeImpl : public ParentTree/*, public Intersectable*/
|
||||
{
|
||||
|
||||
@@ -71,9 +71,9 @@ namespace VMAP
|
||||
*/
|
||||
void setEnableHeightCalc(bool pVal) { iEnableHeightCalc = pVal; }
|
||||
|
||||
bool isLineOfSightCalcEnabled() const { return(iEnableLineOfSightCalc); }
|
||||
bool isHeightCalcEnabled() const { return(iEnableHeightCalc); }
|
||||
bool isMapLoadingEnabled() const { return(iEnableLineOfSightCalc || iEnableHeightCalc ); }
|
||||
bool isLineOfSightCalcEnabled() const { return (iEnableLineOfSightCalc); }
|
||||
bool isHeightCalcEnabled() const { return (iEnableHeightCalc); }
|
||||
bool isMapLoadingEnabled() const { return (iEnableLineOfSightCalc || iEnableHeightCalc ); }
|
||||
|
||||
virtual std::string getDirFileName(unsigned int pMapId, int x, int y) const = 0;
|
||||
/**
|
||||
|
||||
@@ -96,7 +96,7 @@ namespace MMAP
|
||||
ACORE_WRITE_GUARD(ACE_RW_Thread_Mutex, MMapManagerLock);
|
||||
|
||||
// make sure the mmap is loaded and ready to load tiles
|
||||
if(!loadMapData(mapId))
|
||||
if (!loadMapData(mapId))
|
||||
return false;
|
||||
|
||||
// get this mmap data
|
||||
@@ -148,7 +148,7 @@ namespace MMAP
|
||||
ASSERT(data);
|
||||
|
||||
size_t result = fread(data, fileHeader.size, 1, file);
|
||||
if(!result)
|
||||
if (!result)
|
||||
{
|
||||
sLog->outError("MMAP:loadMap: Bad header or data in mmap %03u%02i%02i.mmtile", mapId, x, y);
|
||||
fclose(file);
|
||||
|
||||
@@ -220,7 +220,7 @@ namespace VMAP
|
||||
{
|
||||
height = pPos.z - maxDist;
|
||||
}
|
||||
return(height);
|
||||
return (height);
|
||||
}
|
||||
|
||||
//=========================================================
|
||||
|
||||
@@ -37,7 +37,7 @@ namespace VMAP
|
||||
{
|
||||
Vector3 out = pIn * iScale;
|
||||
out = iRotation * out;
|
||||
return(out);
|
||||
return (out);
|
||||
}
|
||||
|
||||
//=================================================================
|
||||
|
||||
@@ -52,7 +52,7 @@ public:
|
||||
#define HGRID_MAP_SIZE (533.33333f * 64.f) // shouldn't be changed
|
||||
#define CELL_SIZE float(HGRID_MAP_SIZE/(float)CELL_NUMBER)
|
||||
|
||||
typedef G3D::Table<const T*, NodeArray<Node> > MemberTable;
|
||||
typedef G3D::Table<const T*, NodeArray<Node>> MemberTable;
|
||||
|
||||
MemberTable memberTable;
|
||||
Node* nodes[CELL_NUMBER][CELL_NUMBER];
|
||||
|
||||
Reference in New Issue
Block a user