Some code cleanup.

This commit is contained in:
H0zen 2017-06-06 02:41:26 +03:00 committed by Antz
parent d5f638b8c8
commit 65229fcf4e
32 changed files with 107 additions and 91 deletions

View file

@ -171,7 +171,7 @@ void FleeingMovementGenerator<T>::Reset(T& owner)
template<class T>
bool FleeingMovementGenerator<T>::Update(T& owner, const uint32& time_diff)
{
if (!&owner || !owner.IsAlive())
if (!owner.IsAlive())
return false;
// ignore in case other no reaction state

View file

@ -72,9 +72,6 @@ void PointMovementGenerator<T>::Reset(T& unit)
template<class T>
bool PointMovementGenerator<T>::Update(T& unit, const uint32& diff)
{
if (!&unit)
return false;
if (unit.hasUnitState(UNIT_STAT_CAN_NOT_MOVE))
{
unit.clearUnitState(UNIT_STAT_ROAMING_MOVE);