mirror of
https://github.com/mangosfour/server.git
synced 2025-12-28 13:37:13 +00:00
Some code cleanup.
This commit is contained in:
parent
d5f638b8c8
commit
65229fcf4e
32 changed files with 107 additions and 91 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue