Sourcefile sleanups -> tabs to spaces, remove whitespace - also update the cleanupscripts very slightly
--HG-- branch : trunk
This commit is contained in:
@@ -53,7 +53,7 @@ ConfusedMovementGenerator<T>::Initialize(T &unit)
|
||||
float wanderY = y + wander_distance*rand_norm() - wander_distance/2;
|
||||
Trinity::NormalizeMapCoord(wanderX);
|
||||
Trinity::NormalizeMapCoord(wanderY);
|
||||
|
||||
|
||||
float new_z = map->GetHeight(wanderX, wanderY, z, true);
|
||||
if (new_z > INVALID_HEIGHT && unit.IsWithinLOS(wanderX, wanderY, new_z))
|
||||
{
|
||||
@@ -68,7 +68,7 @@ ConfusedMovementGenerator<T>::Initialize(T &unit)
|
||||
i_waypoints[idx][2] = idx > 0 ? i_waypoints[idx-1][2] : z;
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
// Taken from FleeingMovementGenerator
|
||||
if (!(new_z - z) || wander_distance / fabs(new_z - z) > 1.0f)
|
||||
{
|
||||
|
||||
@@ -292,7 +292,7 @@ bool FlightPathMovementGenerator::Update(Player &player, const uint32 &diff)
|
||||
// do not send movement, it was sent already
|
||||
i_destinationHolder.SetDestination(traveller, (*i_path)[i_currentNode].x, (*i_path)[i_currentNode].y, (*i_path)[i_currentNode].z, false);
|
||||
}
|
||||
|
||||
|
||||
// check if it's time to preload the flightmaster grid at path end
|
||||
if (i_currentNode == m_preloadTargetNode)
|
||||
PreloadEndGrid();
|
||||
|
||||
@@ -54,7 +54,7 @@ class PathMovementBase
|
||||
void LoadPath(T &);
|
||||
void ReloadPath(T &);
|
||||
uint32 GetCurrentNode() const { return i_currentNode; }
|
||||
|
||||
|
||||
bool GetDestination(float& x, float& y, float& z) const { i_destinationHolder.GetDestination(x,y,z); return true; }
|
||||
bool GetPosition(float& x, float& y, float& z) const { i_destinationHolder.GetLocationNowNoMicroMovement(x,y,z); return true; }
|
||||
|
||||
|
||||
@@ -53,7 +53,7 @@ class Path
|
||||
}
|
||||
return len;
|
||||
}
|
||||
|
||||
|
||||
float GetTotalLength() const { return GetTotalLength(0,size()); }
|
||||
|
||||
float GetPassedLength(uint32 curnode, float x, float y, float z)
|
||||
@@ -74,7 +74,7 @@ class Path
|
||||
|
||||
PathNode& operator[](size_t idx) { return i_nodes[idx]; }
|
||||
PathNode const& operator[](size_t idx) const { return i_nodes[idx]; }
|
||||
|
||||
|
||||
void set(size_t idx, PathElem elem) { i_nodes[idx] = elem; }
|
||||
|
||||
protected:
|
||||
|
||||
Reference in New Issue
Block a user