refactor(Core/Game): restyle game lib with astyle (#3466)
This commit is contained in:
parent
e99b526e17
commit
a2b26272d2
338 changed files with 52196 additions and 50944 deletions
|
|
@ -20,7 +20,7 @@ void PointMovementGenerator<T>::DoInitialize(T* unit)
|
|||
if (!unit->IsStopped())
|
||||
unit->StopMoving();
|
||||
|
||||
unit->AddUnitState(UNIT_STATE_ROAMING|UNIT_STATE_ROAMING_MOVE);
|
||||
unit->AddUnitState(UNIT_STATE_ROAMING | UNIT_STATE_ROAMING_MOVE);
|
||||
i_recalculateSpeed = false;
|
||||
Movement::MoveSplineInit init(unit);
|
||||
if (m_precomputedPath.size() > 2) // pussywizard: for charge
|
||||
|
|
@ -39,8 +39,8 @@ void PointMovementGenerator<T>::DoInitialize(T* unit)
|
|||
// Xinef: fix strange client visual bug, moving on z coordinate only switches orientation by 180 degrees (visual only)
|
||||
if (G3D::fuzzyEq(unit->GetPositionX(), i_x) && G3D::fuzzyEq(unit->GetPositionY(), i_y))
|
||||
{
|
||||
i_x += 0.2f*cos(unit->GetOrientation());
|
||||
i_y += 0.2f*sin(unit->GetOrientation());
|
||||
i_x += 0.2f * cos(unit->GetOrientation());
|
||||
i_y += 0.2f * sin(unit->GetOrientation());
|
||||
}
|
||||
|
||||
init.MoveTo(i_x, i_y, i_z);
|
||||
|
|
@ -51,8 +51,8 @@ void PointMovementGenerator<T>::DoInitialize(T* unit)
|
|||
// Xinef: fix strange client visual bug, moving on z coordinate only switches orientation by 180 degrees (visual only)
|
||||
if (G3D::fuzzyEq(unit->GetPositionX(), i_x) && G3D::fuzzyEq(unit->GetPositionY(), i_y))
|
||||
{
|
||||
i_x += 0.2f*cos(unit->GetOrientation());
|
||||
i_y += 0.2f*sin(unit->GetOrientation());
|
||||
i_x += 0.2f * cos(unit->GetOrientation());
|
||||
i_y += 0.2f * sin(unit->GetOrientation());
|
||||
}
|
||||
|
||||
init.MoveTo(i_x, i_y, i_z);
|
||||
|
|
@ -134,7 +134,7 @@ void PointMovementGenerator<T>::DoReset(T* unit)
|
|||
if (!unit->IsStopped())
|
||||
unit->StopMoving();
|
||||
|
||||
unit->AddUnitState(UNIT_STATE_ROAMING|UNIT_STATE_ROAMING_MOVE);
|
||||
unit->AddUnitState(UNIT_STATE_ROAMING | UNIT_STATE_ROAMING_MOVE);
|
||||
}
|
||||
|
||||
template<class T>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue